mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10532] Remove unnecessary parentheses around calculations of addition.
PHPBB3-10532
This commit is contained in:
parent
6548a3094f
commit
7a061cfc6e
1 changed files with 2 additions and 2 deletions
|
@ -478,7 +478,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||||
if ($sql)
|
if ($sql)
|
||||||
{
|
{
|
||||||
// Only return up to $total_matches_limit+1 ids (the last one will be removed later)
|
// 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))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
|
@ -489,7 +489,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||||
else if ($search_id == 'unreadposts')
|
else if ($search_id == 'unreadposts')
|
||||||
{
|
{
|
||||||
// Only return up to $total_matches_limit+1 ids (the last one will be removed later)
|
// 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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue