aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-05-26 12:00:17 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-05-26 12:00:17 +0000
commit54db19aef046fb02525396a921b72941aefd0ab6 (patch)
treeff3c5534a16d8c5627558cc492acee4224efbca5 /phpBB
parentc41388ce8ab2268cd97c1c7d2d2791faddf23ea3 (diff)
downloadforums-54db19aef046fb02525396a921b72941aefd0ab6.tar
forums-54db19aef046fb02525396a921b72941aefd0ab6.tar.gz
forums-54db19aef046fb02525396a921b72941aefd0ab6.tar.bz2
forums-54db19aef046fb02525396a921b72941aefd0ab6.tar.xz
forums-54db19aef046fb02525396a921b72941aefd0ab6.zip
#27855
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8567 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_privmsgs.php5
-rw-r--r--phpBB/includes/ucp/ucp_pm_viewfolder.php2
2 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php
index 834bcfea51..d01d89a7e3 100644
--- a/phpBB/includes/functions_privmsgs.php
+++ b/phpBB/includes/functions_privmsgs.php
@@ -208,6 +208,11 @@ function get_folder($user_id, $folder_id = false)
);
}
+ if ($folder_id !== false && !isset($folder[$folder_id]))
+ {
+ trigger_error('UNKNOWN_FOLDER');
+ }
+
return $folder;
}
diff --git a/phpBB/includes/ucp/ucp_pm_viewfolder.php b/phpBB/includes/ucp/ucp_pm_viewfolder.php
index e9c337519a..8c765b1e90 100644
--- a/phpBB/includes/ucp/ucp_pm_viewfolder.php
+++ b/phpBB/includes/ucp/ucp_pm_viewfolder.php
@@ -493,7 +493,7 @@ function get_pm_from($folder_id, $folder, $user_id)
}
else
{
- $pm_count = $folder[$folder_id]['num_messages'];
+ $pm_count = (!empty($folder[$folder_id]['num_messages'])) ? $folder[$folder_id]['num_messages'] : 0;
$sql_limit_time = '';
}