From b94f0d60b49ab2d5eadf184d1f445cae51ab6da6 Mon Sep 17 00:00:00 2001
From: Nestor <npegane@hotmail.com>
Date: Tue, 24 Oct 2017 10:28:41 +0200
Subject: [PATCH] FIX #6173 parenthesis added in where request

---
 modules/tags/manage_tag_list_controller.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/tags/manage_tag_list_controller.php b/modules/tags/manage_tag_list_controller.php
index 73b3efbb522..8450152f8f2 100755
--- a/modules/tags/manage_tag_list_controller.php
+++ b/modules/tags/manage_tag_list_controller.php
@@ -192,7 +192,7 @@ function display_list()
         $where = '';
         $where_what = array();
     } else {
-        $where = 'entity_id_owner = ? OR entity_id_owner IS NULL';
+        $where = '(entity_id_owner = ? OR entity_id_owner IS NULL)';
         $where_what = array($_SESSION['user']['primaryentity']['id']);   
     }
     $what = '';
-- 
GitLab