mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Merge branch '3.1.x'
This commit is contained in:
commit
9777abaed4
1 changed files with 2 additions and 2 deletions
|
@ -508,7 +508,7 @@ class acp_prune
|
||||||
AND ug.user_id <> ' . ANONYMOUS . '
|
AND ug.user_id <> ' . ANONYMOUS . '
|
||||||
AND u.user_type <> ' . USER_FOUNDER . '
|
AND u.user_type <> ' . USER_FOUNDER . '
|
||||||
AND ug.user_pending = 0 ' .
|
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';
|
AND u.user_id = ug.user_id';
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
|
@ -534,7 +534,7 @@ class acp_prune
|
||||||
FROM ' . POSTS_TABLE . ' p, ' . USERS_TABLE . ' u
|
FROM ' . POSTS_TABLE . ' p, ' . USERS_TABLE . ' u
|
||||||
WHERE u.user_id <> ' . ANONYMOUS . '
|
WHERE u.user_id <> ' . ANONYMOUS . '
|
||||||
AND u.user_type <> ' . USER_FOUNDER .
|
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 ' . $db->sql_in_set('p.post_visibility', array(ITEM_UNAPPROVED, ITEM_REAPPROVE)) . '
|
||||||
AND u.user_id = p.poster_id
|
AND u.user_id = p.poster_id
|
||||||
GROUP BY p.poster_id
|
GROUP BY p.poster_id
|
||||||
|
|
Loading…
Add table
Reference in a new issue