diff options
author | Andreas Fischer <bantu@phpbb.com> | 2012-02-26 02:29:49 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2012-02-26 02:30:44 +0100 |
commit | 7a061cfc6ea52f86d623e496d7355413739b6254 (patch) | |
tree | cd6c8dddc82a8d73aa2fd8d8ff39f30fef807546 /phpBB/search.php | |
parent | 6548a3094f2981a19ff001e67596befab4159ecd (diff) | |
download | forums-7a061cfc6ea52f86d623e496d7355413739b6254.tar forums-7a061cfc6ea52f86d623e496d7355413739b6254.tar.gz forums-7a061cfc6ea52f86d623e496d7355413739b6254.tar.bz2 forums-7a061cfc6ea52f86d623e496d7355413739b6254.tar.xz forums-7a061cfc6ea52f86d623e496d7355413739b6254.zip |
[ticket/10532] Remove unnecessary parentheses around calculations of addition.
PHPBB3-10532
Diffstat (limited to 'phpBB/search.php')
-rw-r--r-- | phpBB/search.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index d89bc79225..8cb2020630 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -478,7 +478,7 @@ if ($keywords || $author || $author_id || $search_id || $submit) if ($sql) { // Only return up to $total_matches_limit+1 ids (the last one will be removed later) - $result = $db->sql_query_limit($sql, ($total_matches_limit + 1)); + $result = $db->sql_query_limit($sql, $total_matches_limit + 1); while ($row = $db->sql_fetchrow($result)) { @@ -489,7 +489,7 @@ if ($keywords || $author || $author_id || $search_id || $submit) else if ($search_id == 'unreadposts') { // Only return up to $total_matches_limit+1 ids (the last one will be removed later) - $id_ary = array_keys(get_unread_topics($user->data['user_id'], $sql_where, $sql_sort, ($total_matches_limit + 1))); + $id_ary = array_keys(get_unread_topics($user->data['user_id'], $sql_where, $sql_sort, $total_matches_limit + 1)); } else { |