diff options
-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]); |