From bdefcbc0090f0c9aa0bd814eebf964b2d95a5268 Mon Sep 17 00:00:00 2001 From: Sam Mousa Date: Thu, 9 Aug 2012 14:48:47 +0200 Subject: [PATCH] Fixed issue #6459: Declaration of statistics::run() should be compatible with Survey_Common_Action::run() Dev The statistics action contains no error handling for incorrect / unknown survey ids, should this be reported separately? --- application/controllers/admin/statistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/admin/statistics.php b/application/controllers/admin/statistics.php index 6e94d566ff0..83b37bc6f00 100644 --- a/application/controllers/admin/statistics.php +++ b/application/controllers/admin/statistics.php @@ -33,7 +33,7 @@ function __construct($controller, $id) /** * Constructor */ - public function run($surveyid, $subaction = null) + public function run($surveyid = 0, $subaction = null) { $surveyid = sanitize_int($surveyid); //TODO: Convert question types to views