QuickForm: Fix null failure

This commit is contained in:
Alexander Fuhr 2015-07-03 11:20:32 +02:00
parent f6bf0e3158
commit 83fdf0f67d
1 changed files with 1 additions and 1 deletions

View File

@ -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']);
}