From b555ea983c40a368fe3fb533f0242f6938996b24 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Tue, 6 May 2014 19:02:50 -0500 Subject: [PATCH] Fixing bug that occurred with no required parameters --- system/engine/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/engine/core.php b/system/engine/core.php index 9f186c3..2d0668c 100644 --- a/system/engine/core.php +++ b/system/engine/core.php @@ -169,7 +169,7 @@ class HF_Core $numOfReqPara = $call->getNumberOfRequiredParameters(); $numOfOptPara = $call->getNumberOfParameters() - $numOfReqPara; $remainparas = count($this->args) - $numOfReqPara; - if ($remainparas >= 0 && $remainparas <= $numOfOptPara) + if ($numOfReqPara == 0 || ($remainparas >= 0 && $remainparas <= $numOfOptPara)) { $call->invokeArgs($this->class, $this->args); }