summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-09-28 13:18:16 +0000
committeralecpl <alec@alec.pl>2011-09-28 13:18:16 +0000
commit4037d38873327a2ae15cf653fd643d8efe83929a (patch)
tree312dd3ffb7032d62f926b31da0c0c9debf28a404
parent65082b3adbfaa04c4aff7c41147bb43e34941106 (diff)
- Hide PHP warning when max() is used with an empty array
-rw-r--r--program/include/rcube_imap_cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_imap_cache.php b/program/include/rcube_imap_cache.php
index 8ef5b71cb..b51bc6db9 100644
--- a/program/include/rcube_imap_cache.php
+++ b/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;