aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_core.inc.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_core.inc.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 '')
-rw-r--r--include/ws_core.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ws_core.inc.php b/include/ws_core.inc.php
index c9ee520f6..80cc0736b 100644
--- a/include/ws_core.inc.php
+++ b/include/ws_core.inc.php
@@ -269,7 +269,7 @@ class PwgResponseEncoder
private static function _removeNamedArray(&$value)
{
- if ( strtolower( get_class($value) ) =='pwgnamedarray')
+ if ( strtolower( @get_class($value) ) =='pwgnamedarray')
{
$value = $value->_content;
return 1;
@@ -279,7 +279,7 @@ class PwgResponseEncoder
private static function _removeNamedStruct(&$value)
{
- if ( strtolower( get_class($value) ) =='pwgnamedstruct')
+ if ( strtolower( @get_class($value) ) =='pwgnamedstruct')
{
if ( isset($value->_content['']) )
{
@@ -524,7 +524,7 @@ Request format: ".@$this->_requestFormat." Response format: ".@$this->_responseF
return new PwgError(WS_ERR_MISSING_PARAM, 'Missing parameters: '.implode(',',$missing_params));
}
$result = trigger_event('ws_invoke_allowed', true, $methodName, $params);
- if ( strtolower( get_class($result) )!='pwgerror')
+ if ( strtolower( @get_class($result) )!='pwgerror')
{
if ( !empty($method['include']) )
{