From 83fdf0f67d84105e22f79bef5cc4c6d14ae6e317 Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Fri, 3 Jul 2015 11:20:32 +0200 Subject: [PATCH] QuickForm: Fix null failure --- library/Director/Web/Form/QuickForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Web/Form/QuickForm.php b/library/Director/Web/Form/QuickForm.php index 80ac2643..9b633ea2 100644 --- a/library/Director/Web/Form/QuickForm.php +++ b/library/Director/Web/Form/QuickForm.php @@ -57,7 +57,7 @@ abstract class QuickForm extends Zend_Form public function __construct($options = null) { - if (array_key_exists('icingaModule', $options)) { + if ($options !== null && array_key_exists('icingaModule', $options)) { $this->icingaModule = $options['icingaModule']; unset($options['icingaModule']); }