TypeError

array_merge(): Argument #1 must be of type array, false given

/media/shnoulle/data/webdev/master/application/core/LSETwigViewRenderer.php(676)

664     {
665         /* get minimal surveyInfo if we can have a sid, used in ExpressionManager for example */
666         if (empty($aData["aSurveyInfo"])) {
667             $aData["aSurveyInfo"] = array();
668             if (!empty($aData["sid"]) || LimeExpressionManager::getLEMsurveyId()) {
669                 $sid = empty($aData["sid"]) ? LimeExpressionManager::getLEMsurveyId() : $aData["sid"];
670                 $language = empty($aData["language"]) ? App()->getLanguage() : $aData["language"];
671                 $aData["aSurveyInfo"] = getSurveyInfo($sid, $language);
672             }
673         }
674         // We retrieve the definition of the core class and attributes
675         // (in the future, should be template dependant done via XML file)
676         $aData["aSurveyInfo"] = array_merge($aData["aSurveyInfo"], $oTemplate->getClassAndAttributes());
677 
678         $languagecode = App()->getLanguage();
679         if (!empty($aData['aSurveyInfo']['sid']) && Survey::model()->findByPk($aData['aSurveyInfo']['sid'])) {
680             if (!in_array($languagecode, Survey::model()->findByPk($aData['aSurveyInfo']['sid'])->getAllLanguages())) {
681                 $languagecode = Survey::model()->findByPk($aData['aSurveyInfo']['sid'])->language;
682             }
683         }
684 
685         $aData["aSurveyInfo"]['languagecode']     = $languagecode;
686         $aData["aSurveyInfo"]['dir']              = (getLanguageRTL($languagecode)) ? "rtl" : "ltr";
687 
688         if (!empty($aData['aSurveyInfo']['sid'])) {

Stack Trace

#0
+
 /media/shnoulle/data/webdev/master/application/core/LSETwigViewRenderer.php(676): array_merge()
671                 $aData["aSurveyInfo"] = getSurveyInfo($sid, $language);
672             }
673         }
674         // We retrieve the definition of the core class and attributes
675         // (in the future, should be template dependant done via XML file)
676         $aData["aSurveyInfo"] = array_merge($aData["aSurveyInfo"], $oTemplate->getClassAndAttributes());
677 
678         $languagecode = App()->getLanguage();
679         if (!empty($aData['aSurveyInfo']['sid']) && Survey::model()->findByPk($aData['aSurveyInfo']['sid'])) {
680             if (!in_array($languagecode, Survey::model()->findByPk($aData['aSurveyInfo']['sid'])->getAllLanguages())) {
681                 $languagecode = Survey::model()->findByPk($aData['aSurveyInfo']['sid'])->language;
#1
+
 /media/shnoulle/data/webdev/master/application/core/LSETwigViewRenderer.php(795): LSETwigViewRenderer->getAdditionalInfos()
790      * @throws Twig_Error_Syntax
791      */
792     public function renderPartial($twigView, $aData)
793     {
794         $oTemplate = Template::getLastInstance();
795         $aData = $this->getAdditionalInfos($aData, $oTemplate);
796         $this->addRecursiveTemplatesPath($oTemplate);
797         return $this->_twig->render($twigView, $aData);
798     }
799 
800     /**
#2
+
 /media/shnoulle/data/webdev/GITREPO/PLUGINS/AdminBanner/AdminBanner.php(92): LSETwigViewRenderer->renderPartial()
87      */
88     public function beforeAdminMenuRender()
89     {
90         if (!empty($this->get('textshown'))) {
91             $this->subscribe('getPluginTwigPath');
92             $content = Yii::app()->twigRenderer->renderPartial('/admin/banner/adminbanner.twig', array(
93                 'bannertext' => $this->get('textshown'),
94                 'cssclass' => $this->get('cssclass', null, null, $this->settings['cssclass']['default']),
95             ));
96             $script = "if ($('#AdminBannerContent').length < 1) {\n";
97             $script .= "\t$('nav.navbar').after('" . trim(json_encode($content), '"') ."');\n";
2025-03-05 09:03:40 nginx/1.22.1 Yii Framework/1.1.30