Don't try to access protected member variable
authorMichael M Slusarz <slusarz@curecanti.org>
Sat, 30 Jan 2010 16:37:33 +0000 (09:37 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Sat, 30 Jan 2010 16:50:52 +0000 (09:50 -0700)
ingo/lib/Block/overview.php

index 8cc9330..44037a2 100644 (file)
@@ -34,11 +34,11 @@ class Horde_Block_ingo_overview extends Horde_Block {
     function _content()
     {
         /* Get list of filters */
-        $filters = &$GLOBALS['ingo_storage']->retrieve(Ingo_Storage::ACTION_FILTERS);
+        $filters = $GLOBALS['ingo_storage']->retrieve(Ingo_Storage::ACTION_FILTERS);
         $html = '<table width="100%" height="100%">';
         $html_pre = '<tr><td valign="top">';
         $html_post = '</td></tr>';
-        foreach ($filters->_filters as $filter) {
+        foreach ($filters->getFilterList() as $filter) {
             if (!empty($filter['disable'])) {
                 $active = _("inactive");
             } else {