diff program/steps/mail/func.inc @ 21:73124dd49283

More cleaning up php8 Warnings/deprecations, noticed that setting non-my-Dates mailboxes to sort on Date isn't sticky over ctrl-R
author Charlie Root
date Thu, 09 Oct 2025 11:31:41 -0400
parents b6a96bdd6b29
children 303b85d5b561
line wrap: on
line diff
--- a/program/steps/mail/func.inc	Wed Oct 08 09:42:21 2025 -0400
+++ b/program/steps/mail/func.inc	Thu Oct 09 11:31:41 2025 -0400
@@ -565,7 +565,8 @@
     }
 
     if ($RCMAIL->storage->get_threading()) {
-        $OUTPUT->command('init_threads', (array) $roots, $mbox);
+      $OUTPUT->command('init_threads', isset($roots) ? (array)$roots: array(),
+		       $mbox);
     }
 }