[icinga-checkins] icinga.org: icingaweb2/master: Widget\FilterEditor: fix failing parameter checking

git at icinga.org git at icinga.org
Wed Nov 19 09:45:23 CET 2014


Module: icingaweb2
Branch: master
Commit: c6ffdb3862f98017a1cf61ecc597a2496e9bf991
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=c6ffdb3862f98017a1cf61ecc597a2496e9bf991

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed Nov 19 09:44:47 2014 +0100

Widget\FilterEditor: fix failing parameter checking

---

 library/Icinga/Web/Widget/FilterEditor.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php
index 3721e48..cc35491 100644
--- a/library/Icinga/Web/Widget/FilterEditor.php
+++ b/library/Icinga/Web/Widget/FilterEditor.php
@@ -585,7 +585,7 @@ class FilterEditor extends AbstractWidget
             } else {
                 $parent = $filter->getById($addTo);
                 $f = Filter::expression($add['column'], $add['sign'], $add['value']);
-                if ($add['operator']) {
+                if (isset($add['operator'])) {
                     switch($add['operator']) {
                         case 'AND':
                             if ($parent->isExpression()) {



More information about the icinga-checkins mailing list