mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-03 00:12:14 +02:00
issue #1575 PHP 8 compatibility, check for object type
* by using $response instanceof PwgError instead of get_class()
This commit is contained in:
@@ -586,7 +586,7 @@ Request format: ".@$this->_requestFormat." Response format: ".@$this->_responseF
|
||||
$result = trigger_change('ws_invoke_allowed', true, $methodName, $params);
|
||||
|
||||
$is_error = false;
|
||||
if (is_object($result) and strtolower( get_class($result) ) == 'pwgerror')
|
||||
if ($result instanceof PwgError)
|
||||
{
|
||||
$is_error = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user