system: empty() is enough in these checks

This commit is contained in:
Franco Fichtner 2022-11-14 14:43:38 +01:00
parent a6b2711779
commit 68ab55bf98

View File

@ -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;