QuickForm: Fix null failure
This commit is contained in:
parent
f6bf0e3158
commit
83fdf0f67d
|
@ -57,7 +57,7 @@ abstract class QuickForm extends Zend_Form
|
||||||
|
|
||||||
public function __construct($options = null)
|
public function __construct($options = null)
|
||||||
{
|
{
|
||||||
if (array_key_exists('icingaModule', $options)) {
|
if ($options !== null && array_key_exists('icingaModule', $options)) {
|
||||||
$this->icingaModule = $options['icingaModule'];
|
$this->icingaModule = $options['icingaModule'];
|
||||||
unset($options['icingaModule']);
|
unset($options['icingaModule']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue