Development

Changeset 8863

You must first sign up to be able to contribute.

Changeset 8863

Show
Ignore:
Timestamp:
05/08/08 15:53:47 (5 days ago)
Author:
FabianLange
Message:

fixed category retrieval. fixes #3495

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfFeed2Plugin/lib/sfFeedPeer.class.php

    r8857 r8863  
    504504    foreach (array('getFeedCategories', 'getCategories') as $methodName) 
    505505    { 
    506       if (method_exists($item, $methodName) && is_object($item->$methodName())) 
    507       { 
    508         // categories as an object 
    509         $categories = $item->$methodName(); 
    510         if (is_array($categories)) 
    511         { 
    512           $cats = array(); 
    513           foreach ($categories as $category) 
    514           { 
    515             $cats[] = (string) $category; 
    516           } 
    517  
    518           return $cats; 
    519         } 
     506      if (method_exists($item, $methodName) && is_array($item->$methodName())) 
     507      { 
     508        $cats = array(); 
     509        foreach ($item->$methodName() as $category) 
     510        { 
     511          $cats[] = (string) $category; 
     512        } 
     513 
     514        return $cats; 
    520515      } 
    521516    }