Fix undefined index.
authorJan Schneider <jan@horde.org>
Wed, 29 Jul 2009 07:22:05 +0000 (09:22 +0200)
committerJan Schneider <jan@horde.org>
Wed, 29 Jul 2009 16:53:25 +0000 (18:53 +0200)
kronolith/lib/Block/summary.php

index ae0dc76..a0050e5 100644 (file)
@@ -12,6 +12,14 @@ class Horde_Block_Kronolith_summary extends Horde_Block {
 
     var $_app = 'kronolith';
 
+    function Horde_Block_Kronolith_summary($params = array(), $row = null, $col = null)
+    {
+        parent::Horde_Block($params, $row, $col);
+        if (!isset($this->_params['days'])) {
+            $this->_params['days'] = 7;
+        }
+    }
+
     function _params()
     {
         @define('KRONOLITH_BASE', dirname(__FILE__) . '/../..');