From 294a0380f4a0c1f2c5c8078f48218c4f97371b23 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Sun, 9 Jun 2013 18:20:53 +0200 Subject: [PATCH] Dev Small fix for test script --- application/controllers/admin/remotecontrol.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 +}