aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_protocols/rest_encoder.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/ws_protocols/rest_encoder.php')
-rw-r--r--include/ws_protocols/rest_encoder.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ws_protocols/rest_encoder.php b/include/ws_protocols/rest_encoder.php
index eb71d60fc..d0797f05b 100644
--- a/include/ws_protocols/rest_encoder.php
+++ b/include/ws_protocols/rest_encoder.php
@@ -152,7 +152,7 @@ class PwgRestEncoder extends PwgResponseEncoder
{
function encodeResponse($response)
{
- $respClass = strtolower( get_class($response) );
+ $respClass = strtolower( @get_class($response) );
if ($respClass=='pwgerror')
{
$ret = '<?xml version="1.0"?>
@@ -259,7 +259,7 @@ class PwgRestEncoder extends PwgResponseEncoder
}
break;
case 'object':
- switch ( strtolower(get_class($data)) )
+ switch ( strtolower(@get_class($data)) )
{
case 'pwgnamedarray':
$this->encode_array($data->_content, $data->_itemName, $data->_xmlAttributes);
@@ -273,7 +273,7 @@ class PwgRestEncoder extends PwgResponseEncoder
}
break;
default:
- trigger_error("Invalid type ". gettype($data)." ".get_class($data), E_USER_WARNING );
+ trigger_error("Invalid type ". gettype($data)." ".@get_class($data), E_USER_WARNING );
}
}
}