mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-13 09:56:01 +00:00
[Web] Fix get custom_login
This commit is contained in:
@@ -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();
|
$custom_login = $redis->get('CUSTOM_LOGIN');
|
||||||
return json_decode($custom_login, true);
|
return $custom_login ? json_decode($custom_login, true) : array();
|
||||||
}
|
}
|
||||||
catch (RedisException $e) {
|
catch (RedisException $e) {
|
||||||
$_SESSION['return'][] = array(
|
$_SESSION['return'][] = array(
|
||||||
|
|||||||
Reference in New Issue
Block a user