[dev] Mismatch in Kronolith::listCategories and Kronolith::formatCategory

Mike Cochrane mike@graftonhall.co.nz
Tue, 17 Sep 2002 02:20:11 +1200


fixed thanks....


- Mike :-)

> ----- Message from davidu@everydns.net ---------
>     Date: Mon, 16 Sep 2002 09:15:22 -0500
>     From: "David U." <davidu@everydns.net>
> Reply-To: "David U." <davidu@everydns.net>
>  Subject: [dev] Mismatch in Kronolith::listCategories and
Kronolith::formatCategory
>       To: dev@lists.horde.org
> 
> Hi,
> 
> In the Kronolith category code formatCategory gets called and returns:
> 
> $categories = Kronolith::listCategories();
> return isset($categories[$share_id][$categoryID]) ?
>                  $categories[$share_id][$categoryID] :
>                  $categories[$share_id][0];
> 
> However, listCategories() does not return an array with a share_id:
> 
>             foreach ($cats as $cat) {
>                 list($key, $val) = explode(':', $cat);
>                 $categories[$key] = $val;
>             }
> 
> Is this just a case of one not being updated yet or is one of these
> deprecated?
> 
> -davidu
> 
> 
> --
> "Never doubt that a small group of thoughtful citizens can change the
> world. Indeed, it is the only thing that ever has." --Margaret Mead
> 
> 
> 
> 
> --
> Horde developers mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe@lists.horde.org
> 
> ----- End message from davidu@everydns.net -----