diff options
author | Andreas Fischer <bantu@phpbb.com> | 2012-06-23 10:32:16 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2012-06-23 10:32:16 +0200 |
commit | a50d1a3576b9e92dfbcfc5bb951e2985ae1872a1 (patch) | |
tree | 0b93b2c32149ecca8031902ef9713802d45770c2 /phpBB/includes | |
parent | 2a76b7e8690eaf19c25ed4c13540c1e1aab31cdd (diff) | |
download | forums-a50d1a3576b9e92dfbcfc5bb951e2985ae1872a1.tar forums-a50d1a3576b9e92dfbcfc5bb951e2985ae1872a1.tar.gz forums-a50d1a3576b9e92dfbcfc5bb951e2985ae1872a1.tar.bz2 forums-a50d1a3576b9e92dfbcfc5bb951e2985ae1872a1.tar.xz forums-a50d1a3576b9e92dfbcfc5bb951e2985ae1872a1.zip |
[ticket/10950] Move array initialisation to the front.
PHPBB3-10950
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions_privmsgs.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php index d75b4d92a8..cdfde4c7ea 100644 --- a/phpBB/includes/functions_privmsgs.php +++ b/phpBB/includes/functions_privmsgs.php @@ -1103,13 +1103,14 @@ function phpbb_delete_user_pms($user_id) // Get PM Information for later deleting // The two queries where split, so we can use our indexes + $undelivered_msg = $undelivered_user = $delete_ids = array(); + // Part 1: get PMs the user received $sql = 'SELECT msg_id, author_id, folder_id, pm_unread, pm_new FROM ' . PRIVMSGS_TO_TABLE . ' WHERE user_id = ' . $user_id; $result = $db->sql_query($sql); - $undelivered_msg = $undelivered_user = $delete_ids = array(); while ($row = $db->sql_fetchrow($result)) { if ($row['author_id'] == $user_id && $row['folder_id'] == PRIVMSGS_NO_BOX) |