From c161a2c747001a4fb749ac76f86b23ef2a3641fb Mon Sep 17 00:00:00 2001 From: icewing Date: Fri, 21 Mar 2008 16:16:05 +0000 Subject: Marcus Povey * Tweak for unrecognised output format handling git-svn-id: https://code.elgg.org/elgg/trunk@263 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 e33d0bb6d..2751e2166 100644 --- a/engine/lib/api.php +++ b/engine/lib/api.php @@ -807,14 +807,14 @@ return $API_OUTPUT_FUNCTIONS[$format]($result->toStdClass()); // We got here, so no output format was found. Output an error - $result = print_r($result, true); + $result = print_r($result->toStdClass(), true); return <<< END Something went wrong...

API Output Error

-

Something went badly wrong while outputting the result of your request to '$format'. The result and any errors are displayed in +

Something went badly wrong while outputting the result of your request in '$format' format. The result and any errors are displayed in raw text below.

 $result
-- 
cgit v1.2.3