aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_privmsgs.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_privmsgs.php')
-rw-r--r--phpBB/includes/functions_privmsgs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php
index 43b2979b17..5476517440 100644
--- a/phpBB/includes/functions_privmsgs.php
+++ b/phpBB/includes/functions_privmsgs.php
@@ -365,7 +365,7 @@ function place_pm_into_folder(&$global_privmsgs_rules, $release = false)
if (!$user->data['user_new_privmsg'])
{
- return 0;
+ return array('not_moved' => 0, 'removed' => 0);
}
$user_message_rules = (int) $user->data['user_message_rules'];
@@ -717,7 +717,7 @@ function place_pm_into_folder(&$global_privmsgs_rules, $release = false)
$num_not_moved = (int) $db->sql_fetchfield('num_messages');
$db->sql_freeresult($result);
- return array($num_not_moved, $num_removed);
+ return array('not_moved' => $num_not_moved, 'removed' => $num_removed);
}
/**