Skip to content

Commit

Permalink
merge r22141 from branch 2.5 to trunk
Browse files Browse the repository at this point in the history
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/trunk@22142 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Apr 11, 2013
1 parent 0490009 commit 22d81a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions comments.php
Expand Up @@ -148,8 +148,7 @@
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
Expand Down

0 comments on commit 22d81a6

Please sign in to comment.