mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10950] Remove redundant if statement.
We already know author_id and folder_id. PHPBB3-10950
This commit is contained in:
parent
35b18676cd
commit
2a76b7e869
1 changed files with 9 additions and 12 deletions
|
@ -1139,8 +1139,6 @@ function phpbb_delete_user_pms($user_id)
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
{
|
|
||||||
if ($row['author_id'] == $user_id && $row['folder_id'] == PRIVMSGS_NO_BOX)
|
|
||||||
{
|
{
|
||||||
// Undelivered messages
|
// Undelivered messages
|
||||||
$undelivered_msg[] = $row['msg_id'];
|
$undelivered_msg[] = $row['msg_id'];
|
||||||
|
@ -1153,7 +1151,6 @@ function phpbb_delete_user_pms($user_id)
|
||||||
{
|
{
|
||||||
$undelivered_user[$row['user_id']] = 1;
|
$undelivered_user[$row['user_id']] = 1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$delete_ids[(int) $row['msg_id']] = (int) $row['msg_id'];
|
$delete_ids[(int) $row['msg_id']] = (int) $row['msg_id'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue