Skip to content

Commit f5d93e8

Browse files
authored
Add fix for maintenance setting containing value but null ip list (#1320)
1 parent 44d0cc4 commit f5d93e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/cms/models/MaintenanceSetting.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ public function afterFetch()
100100
*/
101101
public static function isAllowedIp(string $ip): bool
102102
{
103-
return IpUtils::checkIp($ip, Arr::pluck(static::get('allowed_ips', []), 'ip'));
103+
return IpUtils::checkIp($ip, Arr::pluck(static::get('allowed_ips', []) ?? [], 'ip'));
104104
}
105105
}

0 commit comments

Comments
 (0)