From 4037d38873327a2ae15cf653fd643d8efe83929a Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 28 Sep 2011 09:18:16 -0400 Subject: [PATCH] - Hide PHP warning when max() is used with an empty array --- program/include/rcube_imap_cache.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/include/rcube_imap_cache.php b/program/include/rcube_imap_cache.php index 8ef5b71..b51bc6d 100644 --- a/program/include/rcube_imap_cache.php +++ b/program/include/rcube_imap_cache.php @@ -853,7 +853,7 @@ // @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; -- Gitblit v1.9.1