alecpl
2011-09-28 4037d38873327a2ae15cf653fd643d8efe83929a
- Hide PHP warning when max() is used with an empty array


1 files modified
2 ■■■ changed files
program/include/rcube_imap_cache.php 2 ●●● patch | view | raw | blame | history
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;