From 617741c62f8bd8aebfd708812404089f94811608 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 20 Jun 2014 13:18:52 +0200 Subject: [PATCH] helpers/widget: options are opional --- library/Icinga/Web/View/helpers/generic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/View/helpers/generic.php b/library/Icinga/Web/View/helpers/generic.php index 91c53ebd8..cedf4da31 100644 --- a/library/Icinga/Web/View/helpers/generic.php +++ b/library/Icinga/Web/View/helpers/generic.php @@ -9,7 +9,7 @@ $this->addHelperFunction('auth', function () { return Manager::getInstance(); }); -$this->addHelperFunction('widget', function ($name, $options) { +$this->addHelperFunction('widget', function ($name, $options = null) { return Widget::create($name, $options); });