aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-05-26 12:05:22 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-05-26 12:05:22 +0000
commit28e8c3ea8587f7dc2d37068a92ebd9d0dfc230c6 (patch)
treec93c4a117c364426cb8394c6f2004041bddd2b79 /phpBB/includes
parent0c1fa73423b230401eff5c1aeeeffeaefd97a1ac (diff)
downloadforums-28e8c3ea8587f7dc2d37068a92ebd9d0dfc230c6.tar
forums-28e8c3ea8587f7dc2d37068a92ebd9d0dfc230c6.tar.gz
forums-28e8c3ea8587f7dc2d37068a92ebd9d0dfc230c6.tar.bz2
forums-28e8c3ea8587f7dc2d37068a92ebd9d0dfc230c6.tar.xz
forums-28e8c3ea8587f7dc2d37068a92ebd9d0dfc230c6.zip
merge
git-svn-id: file:///svn/phpbb/trunk@8570 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-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 6ba08c36de..0137531154 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 = '';
}