Browse Source

Merge pull request #6537 from mailcow/staging

Update 2025-05_2
FreddleSpl0it 3 months ago
parent
commit
1994b9895b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      data/web/inc/functions.customize.inc.php

+ 2 - 2
data/web/inc/functions.customize.inc.php

@@ -388,8 +388,8 @@ function customize($_action, $_item, $_data = null) {
         break;
         case 'custom_login':
           try {
-            $custom_login = ($custom_login = $redis->get('CUSTOM_LOGIN')) ? $custom_login : array();
-            return json_decode($custom_login, true);
+            $custom_login = $redis->get('CUSTOM_LOGIN');
+            return $custom_login ? json_decode($custom_login, true) : array();
           }
           catch (RedisException $e) {
             $_SESSION['return'][] = array(