diff --git a/application/controllers/admin/remotecontrol.php b/application/controllers/admin/remotecontrol.php index bba4c7f4422..81176e5c054 100644 --- a/application/controllers/admin/remotecontrol.php +++ b/application/controllers/admin/remotecontrol.php @@ -99,6 +99,8 @@ public function test() Yii::app()->loadLibrary('jsonRPCClient'); $client = new jsonRPCClient($serverUrl); } + else die('RPC interface not activated in global settings'); + $sSessionKey= $client->call('get_session_key', array('admin','password')); if (is_array($sSessionKey)) {echo $sSessionKey['status']; die();} @@ -160,4 +162,4 @@ public function test() } -} \ No newline at end of file +}