mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 01:42:29 +02:00
issue #1309 compatibility PHP 8
This commit is contained in:
@@ -584,7 +584,14 @@ Request format: ".@$this->_requestFormat." Response format: ".@$this->_responseF
|
||||
}
|
||||
|
||||
$result = trigger_change('ws_invoke_allowed', true, $methodName, $params);
|
||||
if ( strtolower( @get_class($result) )!='pwgerror')
|
||||
|
||||
$is_error = false;
|
||||
if (is_object($result) and strtolower( get_class($result) ) == 'pwgerror')
|
||||
{
|
||||
$is_error = true;
|
||||
}
|
||||
|
||||
if (!$is_error)
|
||||
{
|
||||
if ( !empty($method['include']) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user