[SOLVED] ChartsData.class.php error

Hello. i’m getting the following error in the public profile page: Warning: Creating default object from empty value in C:\wamp\www\testes\core\common\ChartsData.class.php on line 49

In line 49 has:

$z = '';
$z->label = $date[1].'-'.$date[2]; # 49
$z->point = $dat->total;
$dataPoint[] = $z;

Does anyone know the solution to this error?

Thanks!

I solved the error going to the profile.php folder in core/modules/Profile and commenting the line 83:

#replacement for OFC charts - Google Charts API - simpilot
$this->set('chart_url', ChartsData::build_pireptable($pilotid, 30)); # -> 83
#end

Just add # at the beginning of the line.