aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-21 16:16:05 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-21 16:16:05 +0000
commitc161a2c747001a4fb749ac76f86b23ef2a3641fb (patch)
tree0016064ff43835c6967d3565b7b20f5e8184e557
parent469cf7bb880dcc0c589f0d3c1d85c2d976c17b65 (diff)
downloadelgg-c161a2c747001a4fb749ac76f86b23ef2a3641fb.tar.gz
elgg-c161a2c747001a4fb749ac76f86b23ef2a3641fb.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Tweak for unrecognised output format handling git-svn-id: https://code.elgg.org/elgg/trunk@263 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/api.php4
1 files 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
<html>
<head><title>Something went wrong...</title></head>
<body>
<h1>API Output Error</h1>
- <p>Something went badly wrong while outputting the result of your request to '$format'. The result and any errors are displayed in
+ <p>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.</p>
<pre>
$result