diff options
author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-06-07 18:02:31 +0200 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-06-07 18:02:31 +0200 |
commit | 25c4c481d74f2272218fced8506cb7861eec8a75 (patch) | |
tree | 095aec1ecac875de4ac8ba4d122cb0340b43e9da | |
parent | 91212d54534e726fdbd3b3b4c085869fd4b02e76 (diff) | |
parent | 17b94b8f9c02afa0c2c0f29c2d64e4c212776d52 (diff) | |
download | forums-25c4c481d74f2272218fced8506cb7861eec8a75.tar forums-25c4c481d74f2272218fced8506cb7861eec8a75.tar.gz forums-25c4c481d74f2272218fced8506cb7861eec8a75.tar.bz2 forums-25c4c481d74f2272218fced8506cb7861eec8a75.tar.xz forums-25c4c481d74f2272218fced8506cb7861eec8a75.zip |
Merge pull request #3693 from nickvergessen/ticket/13823
[ticket/13823] Remove the unnecessary brackets
-rw-r--r-- | phpBB/includes/acp/acp_prune.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_prune.php b/phpBB/includes/acp/acp_prune.php index 6eb213fd7a..c68f26fc13 100644 --- a/phpBB/includes/acp/acp_prune.php +++ b/phpBB/includes/acp/acp_prune.php @@ -507,7 +507,7 @@ class acp_prune AND ug.user_id <> ' . ANONYMOUS . ' AND u.user_type <> ' . USER_FOUNDER . ' AND ug.user_pending = 0 ' . - ((!empty($user_ids)) ? ' AND ' . $db->sql_in_set('ug.user_id', $user_ids) : '') . ' + (!empty($user_ids) ? ' AND ' . $db->sql_in_set('ug.user_id', $user_ids) : '') . ' AND u.user_id = ug.user_id'; $result = $db->sql_query($sql); @@ -533,7 +533,7 @@ class acp_prune FROM ' . POSTS_TABLE . ' p, ' . USERS_TABLE . ' u WHERE u.user_id <> ' . ANONYMOUS . ' AND u.user_type <> ' . USER_FOUNDER . - ((!empty($user_ids)) ? ' AND ' . $db->sql_in_set('p.poster_id', $user_ids) : '') . ' + (!empty($user_ids) ? ' AND ' . $db->sql_in_set('p.poster_id', $user_ids) : '') . ' AND ' . $db->sql_in_set('p.post_visibility', array(ITEM_UNAPPROVED, ITEM_REAPPROVE)) . ' AND u.user_id = p.poster_id GROUP BY p.poster_id |