diff program/lib/Roundcube/rcube_addressbook.php @ 25:bea5a38be938

More cleaning up php8 Warnings/deprecations
author Charlie Root
date Sat, 18 Oct 2025 12:24:31 -0400
parents 4681f974d28b
children c32b53434b47
line wrap: on
line diff
--- a/program/lib/Roundcube/rcube_addressbook.php	Fri Oct 17 17:31:22 2025 -0400
+++ b/program/lib/Roundcube/rcube_addressbook.php	Sat Oct 18 12:24:31 2025 -0400
@@ -197,7 +197,7 @@
      */
     function set_sort_order($sort_col, $sort_order = null)
     {
-        if ($sort_col != null && ($this->coltypes[$sort_col] || in_array($sort_col, $this->coltypes))) {
+      if ($sort_col != null && ((!empty($this->coltypes[$sort_col]) || in_array($sort_col, $this->coltypes))) {
             $this->sort_col = $sort_col;
         }
         if ($sort_order != null) {