瀏覽代碼

Merge pull request #6536 from mailcow/staging

Automatic PR to nightly from 2025-05-13T07:58:39Z
FreddleSpl0it 4 月之前
父節點
當前提交
d2e5926cce
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;
         break;
         case 'custom_login':
         case 'custom_login':
           try {
           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) {
           catch (RedisException $e) {
             $_SESSION['return'][] = array(
             $_SESSION['return'][] = array(