diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-12-31 17:56:39 +0100 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-12-31 17:56:39 +0100 |
commit | e18531194b112131276e9c7b0207053e917e1e6d (patch) | |
tree | aaa229925ebeadf343dc54fb96b76ad424ccca56 | |
parent | afadeef5cc359b4b3cb8372de1d2424691787807 (diff) |
issue86, unset search-option when tag-result is getting modified
-rw-r--r-- | phpfspot.class.php | 6 |
1 files changed, 6 insertions, 0 deletions
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]); |