Fix statistics controller for PHP 5.3