diff --git a/Repositories/statistics/includes/inc.class.input_check.es.php b/Repositories/statistics/includes/inc.class.input_check.es.php index 13acedc..2b32f43 100755 --- a/Repositories/statistics/includes/inc.class.input_check.es.php +++ b/Repositories/statistics/includes/inc.class.input_check.es.php @@ -17,8 +17,13 @@ } function doCheck($value) { - if (method_exists($this, $this->_config["type"])) { - checkit::$this->_config["type"]($value); + # NJS 2006-12-13 + # PHP 5 appears to not like accessing $this->_config["type"] directly + # as a method call. We now store it in a local variable first. + # Tested OK under both PHP 4 and 5. + $thetype = $this->_config["type"]; + if (method_exists($this, $thetype)) { + checkit::$thetype($value); } else { /* Could do something meaningful here. */ }