From 42798f58cb8c291e435c9db413d3a479940bf3b1 Mon Sep 17 00:00:00 2001 From: icewing Date: Fri, 28 Mar 2008 18:47:32 +0000 Subject: Marcus Povey * git-svn-id: https://code.elgg.org/elgg/trunk@289 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/lib/api.php b/engine/lib/api.php index 706003ee0..e7d6cc4a1 100644 --- a/engine/lib/api.php +++ b/engine/lib/api.php @@ -17,7 +17,7 @@ * @class GenericResult Result superclass. * @author Marcus Povey */ - abstract class GenericResult + abstract class GenericResult { /** * The status of the result. @@ -778,7 +778,7 @@ (array_key_exists($format, $API_OUTPUT_FUNCTIONS)) && (is_callable($API_OUTPUT_FUNCTIONS[$format])) ) - return $API_OUTPUT_FUNCTIONS[$format]($result->toStdClass()); + return $API_OUTPUT_FUNCTIONS[$format]($result->export()); // We got here, so no output format was found. Output an error $result = print_r($result->export(), true); -- cgit v1.2.3