From c6319e19033aa5b21c96b9bf3c97db192491fc5d Mon Sep 17 00:00:00 2001 From: Olle Haerstedt Date: Mon, 11 Jul 2016 16:23:23 +0200 Subject: [PATCH] Dev: Cast XML object to string to avoid PHP warning --- application/controllers/survey/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/survey/index.php b/application/controllers/survey/index.php index 35a48cdd9b8..897d92f7a85 100644 --- a/application/controllers/survey/index.php +++ b/application/controllers/survey/index.php @@ -43,7 +43,7 @@ public function run() foreach($oTemplate->packages as $package) { - App()->getClientScript()->registerPackage($package); + App()->getClientScript()->registerPackage((string) $package); } App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts')."survey_runtime.js");