View Single Post
Old 07-13-2009, 11:03 AM   #12 (permalink)
talonos
The Wanderer
 
Join Date: Jul 2009
Posts: 10
Thanks: 1
talonos is on a distinguished road
Default

ok if anyone wants to know i got my error resolved

find:
PHP Code:
function find_category($xml)  
{  
    foreach(
$xml->achievement as $ach) {  
        if(
$ach['id'] == 576)  
            return 
$ach;  
    }  

and replace with:
PHP Code:
function find_category($xml)  
{  
    foreach(
$xml->category as $cat)
    {
        foreach(
$cat->achievement as $ach)
        {  
            if(
$ach['id'] == 576)  
                return 
$ach;
        }
    }  

talonos is offline  
Reply With Quote