From 0a51bd7ef5a1072c300e4a696ba3442383b0bb7b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 30 Nov 2007 13:33:03 -0500 Subject: [PATCH] Cleaning up the Api::_runActionMethod() method * Api.php: (BSApi::_runActionMethod): Don't use the ternary operator, just use the if() statment at the beginning --- Api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Api.php b/Api.php index 099d5e5..4ca7c89 100644 --- a/Api.php +++ b/Api.php @@ -440,12 +440,12 @@ abstract class BSApi */ private function _runActionMethod($method, $doRun) { - if (!$doRun) + if (!$doRun OR !method_exists($this, $method)) { return; } - $actmethod = (method_exists($this, $method) ? $this->$method() : ''); + $this->$method(); } // ################################################################### -- 2.22.5