diff program/lib/Roundcube/rcube_imap_generic.php @ 17:dd5ed6ef69c9

Slowly cleaning up more php8 Warnings/deprecations
author Charlie Root
date Mon, 06 Oct 2025 12:20:32 -0400
parents 1866b439e6d3
children b631c1c7a3ce
line wrap: on
line diff
--- a/program/lib/Roundcube/rcube_imap_generic.php	Mon Oct 06 10:34:51 2025 -0400
+++ b/program/lib/Roundcube/rcube_imap_generic.php	Mon Oct 06 12:20:32 2025 -0400
@@ -1677,7 +1677,7 @@
     public function countUnseen($mailbox)
     {
         // Check internal cache
-        $cache = $this->data['STATUS:'.$mailbox];
+      $cache = ($this->data['STATUS:'.$mailbox]??null);
         if (!empty($cache) && isset($cache['UNSEEN'])) {
             return (int) $cache['UNSEEN'];
         }