_params['alarms'] won't be set at all unless the checkbox is checked,
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 24 Jun 2009 13:24:07 +0000 (09:24 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 24 Jun 2009 13:26:49 +0000 (09:26 -0400)
need a !empty() check here.

kronolith/lib/Block/summary.php

index 7d0a936..0642ea7 100644 (file)
@@ -138,7 +138,8 @@ class Horde_Block_Kronolith_summary extends Horde_Block {
                 if ($event->end->compareDate($now) < 0) {
                     continue;
                 }
-                if ($this->_params['alarms'] && !$event->alarm) {
+
+                if (!empty($this->_params['alarms']) && !$event->alarm) {
                     continue;
                 }
                 $event_active = $event->start->compareDateTime($now) < 0 &&