Development

#3495 (Categories does not work)

You must first sign up to be able to contribute.

Ticket #3495 (closed defect: fixed)

Opened 5 days ago

Last modified 5 days ago

Categories does not work

Reported by: pihentagy Assigned to: francois
Priority: minor Milestone: plugins
Component: sfFeed2Plugin Version: 1.0.14
Keywords: category Cc:
Qualification: Unreviewed

Description

in sfFeedPeer.class.php

  private static function getItemFeedCategories($item)
  {
    foreach (array('getFeedCategories', 'getCategories') as $methodName)
    {
      if (method_exists($item, $methodName) && is_object($item->$methodName()))
      {
        // categories as an object
        $categories = $item->$methodName();
        if (is_array($categories))

If $item->$methodName() is object, it should not be array. If you replace is_object to is_array, it works fine for me...

... after debugging a lot :-/

Change History

05/08/08 15:54:44 changed by FabianLange

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to plugins.

i cleaned up this method in r8863 there was obviously relicts from old code inside

05/08/08 15:57:00 changed by pihentagy

But then pleeease mention as a known bug!