[agora] Notice: Undefined index: -1 in horde/lib/Category.php on line 481

Andy andy at stronzo.d2g.com
Mon Jul 21 04:33:18 PDT 2003



Hello,

using latest CVS and getting this error:

Notice: Undefined index: -1 in horde/lib/Category.php on line 481 only in agora.

Category.php:

 }
            foreach ($cids as $id => $name) {
                $this->_categories[$id]['name'] = $name;
                $this->_categories[$id]['order'] = $corders[$id];
                if (!empty($cparents[$id])) {
                    $parents = explode(':', substr($cparents[$id], 1));
                    $par = $parents[count($parents) - 1];
                    $this->_categories[$id]['parent'] = $par;
                    $this->_nameMap[$id] = '';
                    foreach ($parents as $parID) {
                        if (!empty($this->_nameMap[$id])) {
                            $this->_nameMap[$id] .= ':';
                        }
   line 481:               $this->_nameMap[$id] .= $cids[$parID];
                    }
                    $this->_nameMap[$id] .= ':' . $name;
                } else {
                    $this->_categories[$id]['parent'] = '-1';
                    $this->_nameMap[$id] = $name;
                }


Is there something wrong with agora or my config?

Thank you,

Andy



More information about the agora mailing list