From 3fde283363e70fac2ac313cde4bb1d9732be1a51 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 11 Apr 2013 14:26:44 +0000 Subject: bug 2887 fixed: avoid private photos to be returned as results on user comment search with the appropriate author. git-svn-id: http://piwigo.org/svn/branches/2.5@22141 68402e56-0260-453c-a942-63ccdbb3a9ee --- comments.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/comments.php b/comments.php index 07b4581fe..c0ecc9263 100644 --- a/comments.php +++ b/comments.php @@ -148,8 +148,7 @@ if (isset($_GET['cat']) and 0 != $_GET['cat']) if (!empty($_GET['author'])) { $page['where_clauses'][] = - 'u.'.$conf['user_fields']['username'].' = \''.$_GET['author'].'\' - OR author = \''.$_GET['author'].'\''; + '(u.'.$conf['user_fields']['username'].' = \''.$_GET['author'].'\' OR author = \''.$_GET['author'].'\')'; } // search a specific comment (if you're coming directly from an admin -- cgit v1.2.3