- Hide PHP warning when max() is used with an empty array

release-0.7
alecpl 13 years ago
parent 65082b3adb
commit 4037d38873

@ -853,7 +853,7 @@ class rcube_imap_cache
// @TODO: find better validity check for threaded index // @TODO: find better validity check for threaded index
if ($is_thread) { if ($is_thread) {
// check messages number... // check messages number...
if ($mbox_data['EXISTS'] != max(array_keys($index['depth']))) { if ($mbox_data['EXISTS'] != @max(array_keys($index['depth']))) {
return false; return false;
} }
return true; return true;

Loading…
Cancel
Save