From 8682dee527edc5f1e586d2c869cead1f3256aed3 Mon Sep 17 00:00:00 2001 From: icewing Date: Wed, 19 Mar 2008 16:54:49 +0000 Subject: Marcus Povey * Removed warning when calling undeclaired functions git-svn-id: https://code.elgg.org/elgg/trunk@255 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/api.php b/engine/lib/api.php index b86a8a09c..26f0acf91 100644 --- a/engine/lib/api.php +++ b/engine/lib/api.php @@ -274,7 +274,7 @@ $token = sanitise_string($token); // See if we can find the method handler - if (is_callable($METHODS[$method]["function"])) + if ((isset($METHODS[$method]["function"])) && (is_callable($METHODS[$method]["function"]))) { $serialised_parameters = ""; -- cgit v1.2.3