summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-28 13:18:16 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-28 13:18:16 +0000
commit9d05faec1bb4f8e06cb11c0e96e4f42431c47e98 (patch)
tree6c5c834b28fa7c2703788dfc5e0e8bff8276f0c4
parent9800e5a3307cb11d418bb77b651ca52d3375090f (diff)
- Hide PHP warning when max() is used with an empty array
git-svn-id: https://svn.roundcube.net/trunk@5286 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/include/rcube_imap_cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_imap_cache.php b/roundcubemail/program/include/rcube_imap_cache.php
index 8ef5b71cb..b51bc6db9 100644
--- a/roundcubemail/program/include/rcube_imap_cache.php
+++ b/roundcubemail/program/include/rcube_imap_cache.php
@@ -853,7 +853,7 @@ class rcube_imap_cache
// @TODO: find better validity check for threaded index
if ($is_thread) {
// check messages number...
- if ($mbox_data['EXISTS'] != max(array_keys($index['depth']))) {
+ if ($mbox_data['EXISTS'] != @max(array_keys($index['depth']))) {
return false;
}
return true;