noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 152/173: Bug : filter of the search and tag


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 152/173: Bug : filter of the search and tag
Date: Mon, 22 Mar 2021 12:59:18 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 1ca321a1b5c0c698ae37325eed5262479a6ec8cb
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Wed Mar 10 09:32:54 2021 +0100

    Bug : filter of the search and tag
---
 include/ajax/ajax_search_filter.php | 1 +
 include/class/tag.class.php         | 1 +
 2 files changed, 2 insertions(+)

diff --git a/include/ajax/ajax_search_filter.php 
b/include/ajax/ajax_search_filter.php
index c27458f..dbf0109 100644
--- a/include/ajax/ajax_search_filter.php
+++ b/include/ajax/ajax_search_filter.php
@@ -213,6 +213,7 @@ if ($op=="delete_search_operation")
 if ($op=='display_filter_tag')
 {
     $tag=$http->request("uf_tag");
+    if ( trim($tag)=="") {return;}
     $div=$http->request("div");
     $aTag=explode(',', $tag);
     if (is_array($aTag))
diff --git a/include/class/tag.class.php b/include/class/tag.class.php
index 5672adf..5b2097e 100644
--- a/include/class/tag.class.php
+++ b/include/class/tag.class.php
@@ -25,6 +25,7 @@ class Tag
     function __construct($p_cn,$id=-1)
     {
         $this->cn=$p_cn;
+        $id = (trim($id)=="")?-1:$id;
         $this->data=new Tag_SQL($p_cn,$id);
     }
     public function get_data()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]