check if array element exists

This commit is contained in:
Uwe Steinmann 2021-05-06 12:18:51 +02:00
parent f63315f6c0
commit 8807257aa2
2 changed files with 4 additions and 2 deletions

View File

@ -1271,7 +1271,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
$attrs[] = array('href', $config['remote']);
$attrs[] = array('data-toggle', 'modal');
$attrs[] = array('role', 'button');
$attrs[] = array('class', $config['class']);
if(isset($config['class']))
$attrs[] = array('class', $config['class']);
return $attrs;
} /* }}} */

View File

@ -1273,7 +1273,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
$attrs[] = array('href', $config['remote']);
$attrs[] = array('data-toggle', 'modal');
$attrs[] = array('role', 'button');
$attrs[] = array('class', $config['class']);
if(isset($config['class']))
$attrs[] = array('class', $config['class']);
return $attrs;
} /* }}} */