aboutsummaryrefslogtreecommitdiffstats
path: root/comments.php
diff options
context:
space:
mode:
Diffstat (limited to 'comments.php')
-rw-r--r--comments.php3
1 files changed, 1 insertions, 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