From: Andreas Unterkircher Date: Mon, 31 Dec 2007 16:56:39 +0000 (+0100) Subject: issue86, unset search-option when tag-result is getting modified X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=e18531194b112131276e9c7b0207053e917e1e6d;ds=sidebyside issue86, unset search-option when tag-result is getting modified --- diff --git a/phpfspot.class.php b/phpfspot.class.php index 6d3dddd..80f02ed 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -615,6 +615,9 @@ class PHPFSPOT { if(!isset($_SESSION['selected_tags'])) $_SESSION['selected_tags'] = Array(); + if(isset($_SESSION['searchfor'])) + unset($_SESSION['searchfor']); + if(!in_array($tag, $_SESSION['selected_tags'])) array_push($_SESSION['selected_tags'], $tag); @@ -628,6 +631,9 @@ class PHPFSPOT { */ public function delTag($tag) { + if(isset($_SESSION['searchfor'])) + unset($_SESSION['searchfor']); + if(isset($_SESSION['selected_tags'])) { $key = array_search($tag, $_SESSION['selected_tags']); unset($_SESSION['selected_tags'][$key]);