Skip to content

Commit a6e3432

Browse files
author
enavn
committed
Fixed: Call to a member function fault() on null
1 parent 997e6d5 commit a6e3432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/lib/classes/remoting.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ protected function getSession($session_id)
488488
public function server_get($session_id, $server_id = null, $section ='') {
489489
global $app;
490490
if(!$this->checkPerm($session_id, 'server_get')) {
491-
$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
491+
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
492492
return false;
493493
}
494494
if (!empty($session_id)) {
@@ -522,7 +522,7 @@ public function server_get_all($session_id)
522522
{
523523
global $app;
524524
if(!$this->checkPerm($session_id, 'server_get')) {
525-
$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
525+
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
526526
return false;
527527
}
528528
if (!empty($session_id)) {

0 commit comments

Comments
 (0)