summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-12-31 17:56:39 +0100
committerAndreas Unterkircher <unki@netshadow.at>2007-12-31 17:56:39 +0100
commite18531194b112131276e9c7b0207053e917e1e6d (patch)
treeaaa229925ebeadf343dc54fb96b76ad424ccca56 /phpfspot.class.php
parentafadeef5cc359b4b3cb8372de1d2424691787807 (diff)
issue86, unset search-option when tag-result is getting modified
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php6
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]);