mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +00:00
check if array element exists
This commit is contained in:
parent
f63315f6c0
commit
8807257aa2
|
@ -1271,7 +1271,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
$attrs[] = array('href', $config['remote']);
|
$attrs[] = array('href', $config['remote']);
|
||||||
$attrs[] = array('data-toggle', 'modal');
|
$attrs[] = array('data-toggle', 'modal');
|
||||||
$attrs[] = array('role', 'button');
|
$attrs[] = array('role', 'button');
|
||||||
$attrs[] = array('class', $config['class']);
|
if(isset($config['class']))
|
||||||
|
$attrs[] = array('class', $config['class']);
|
||||||
return $attrs;
|
return $attrs;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
|
@ -1273,7 +1273,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
$attrs[] = array('href', $config['remote']);
|
$attrs[] = array('href', $config['remote']);
|
||||||
$attrs[] = array('data-toggle', 'modal');
|
$attrs[] = array('data-toggle', 'modal');
|
||||||
$attrs[] = array('role', 'button');
|
$attrs[] = array('role', 'button');
|
||||||
$attrs[] = array('class', $config['class']);
|
if(isset($config['class']))
|
||||||
|
$attrs[] = array('class', $config['class']);
|
||||||
return $attrs;
|
return $attrs;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user