thanks though i managed to fix it by changing
PHP Code:
return $this->GetStats;
into
PHP Code:
return $this->GetStats['0']['1'];
but i reckon yours is the cleaner code.
though i have one more problem, sorry about this.
debugging the code i have
PHP Code:
$prs_stats1 = unserialize($datastore['prs_stats']);
echo $prs_stats1 . "<--";
print_r($prs_stats1);
$makestats = new DoStats($prs_stats1, 15);
$prs_stats2 = $makestats->StatsFormat($makestats);
the problem is though, that $prs_stats1 is returning nothing, while $datastore is giving the correct array, it's like $prs_stats1 isn't unseralizing.
the reason $prs_stats1 is go relevant is because of the conditional in the first method of the class that saves me 8 queries