aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_protocols/json_encoder.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-12-04 23:18:46 +0000
committerplegall <plg@piwigo.org>2009-12-04 23:18:46 +0000
commit4d706af6f5ded41e7d8d1ef6981136da58b7f3ad (patch)
treefc3ca4db2890c599ac0b644f907a77f2529b3a5d /include/ws_protocols/json_encoder.php
parentcbe2d9a1684eafdacf1beeece2644d67322128dc (diff)
bug 1211 fixed: with PHP 5.3, the get_class function requires the input
parameter to be an object, or else throws a E_WARNING message. In webservices files, I have replaced all "get_class" calls by "@get_class". git-svn-id: http://piwigo.org/svn/branches/2.0@4426 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/ws_protocols/json_encoder.php')
-rw-r--r--include/ws_protocols/json_encoder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ws_protocols/json_encoder.php b/include/ws_protocols/json_encoder.php
index 5931b8595..7e56ded2a 100644
--- a/include/ws_protocols/json_encoder.php
+++ b/include/ws_protocols/json_encoder.php
@@ -58,7 +58,7 @@ class PwgJsonEncoder extends PwgResponseEncoder
{
function encodeResponse($response)
{
- $respClass = strtolower( get_class($response) );
+ $respClass = strtolower( @get_class($response) );
if ($respClass=='pwgerror')
{
return json_encode(