mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 18:44:44 +00:00
system: empty() is enough in these checks
This commit is contained in:
parent
a6b2711779
commit
68ab55bf98
@ -93,9 +93,9 @@ function index_users()
|
||||
{
|
||||
global $config;
|
||||
|
||||
$userindex = array();
|
||||
$userindex = [];
|
||||
|
||||
if (!empty($config['system']['user']) && is_array($config['system']['user'])) {
|
||||
if (!empty($config['system']['user'])) {
|
||||
$i = 0;
|
||||
foreach ($config['system']['user'] as $userent) {
|
||||
$userindex[$userent['name']] = $i;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user