phpvms / phpvms_v2

Virtual Airline Management (not maintained)
http://www.phpvms.net
BSD 3-Clause "New" or "Revised" License
41 stars 46 forks source link

Open Flash Chart, JSON Parse Error [Syntax Error]... #110

Open Oxymoron290 opened 11 years ago

Oxymoron290 commented 11 years ago

This is related to Issue #102

If warnings aren't suppressed you get the following error on ./admin/action.php/dashboard/pirepcounts

Strict Standards: Non-static method OFCharts::show_chart() should not be called statically in C:\Development\phpVMS\core\common\OFCharts.class.php on line 175

resulting in the following error on the dashboard.

image

3 different solutions: First, and the less professional is to suppress this with error reporting

Secondly is to change the data member of show_chart() to be a static method. or Finally, edit the invoking line (line 175) to use the following: $this->show_chart($title);

Thoughts? Concerns? Input?