From a8ce6952a1319fbf1999f5726fcded5ead3012cb Mon Sep 17 00:00:00 2001 From: mitagmio Date: Thu, 8 Feb 2018 12:24:56 +0300 Subject: [PATCH] Update Loader.php A PHP Error was encountered Severity: Warning Message: Declaration of MX_Loader::helper($helper) should be compatible with CI_Loader::helper($helpers = Array) Filename: MX/Loader.php Line Number: 0 A PHP Error was encountered Severity: Warning Message: Declaration of MX_Loader::helpers($helpers) should be compatible with CI_Loader::helpers($helpers = Array) Filename: MX/Loader.php Line Number: 0 --- application/third_party/MX/Loader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/third_party/MX/Loader.php b/application/third_party/MX/Loader.php index 8f4435b..dde55bc 100644 --- a/application/third_party/MX/Loader.php +++ b/application/third_party/MX/Loader.php @@ -99,7 +99,7 @@ public function database($params = '', $return = FALSE, $active_record = NULL) { } /** Load a module helper **/ - public function helper($helper) { + public function helper($helper = array()) { if (is_array($helper)) return $this->helpers($helper); @@ -114,7 +114,7 @@ public function helper($helper) { } /** Load an array of helpers **/ - public function helpers($helpers) { + public function helpers($helpers = array()) { foreach ($helpers as $_helper) $this->helper($_helper); } @@ -379,4 +379,4 @@ public function _autoloader($autoload) { } /** load the CI class for Modular Separation **/ -(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php'; \ No newline at end of file +(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';