Skip to content

Commit

Permalink
Fixed a possible error with PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Jan 15, 2022
1 parent a525ea5 commit 01b7069
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions system/classes/XML/RPC.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,15 +553,11 @@ class XML_RPC_Base {
* PEAR Error handling
*
* @return object PEAR_Error object
* @throws Exception
*/
public static function raiseError($msg, $code)
{
include_once 'PEAR.php';
if (is_object(@$this)) {
return PEAR::raiseError(get_class($this) . ': ' . $msg, $code);
} else {
return PEAR::raiseError('XML_RPC: ' . $msg, $code);
}
throw new Exception(__METHOD__ . ": $msg code: $code");
}

/**
Expand Down

0 comments on commit 01b7069

Please sign in to comment.