PHP notice

Trying to access array offset on value of type null

/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/printablesurvey.php(470)

458                               
459                                 $sExplanation .= " <span class='scenario-at-separator'>" . gT("at question") . "</span> '" . " [" . $subresult['title'] . "]' (" . strip_tags($subresult->questionl10ns[$sLanguageCode]->question) . "$answer_section)";
460                             } else {
461                                 $sExplanation .= " " . $distinctrow['value'];
462                             }
463                             //$distinctrow
464                             $x++;
465                         }
466                         $s++;
467                     }
468 
469                     $qinfo = LimeExpressionManager::GetQuestionStatus($arQuestion['qid']);
470                     $relevance = trim($qinfo['info']['relevance']);
471                     $sEquation = $qinfo['relEqn'];
472 
473                     if (trim($relevance) != '' && trim($relevance) != '1') {
474                         if (isset($qidattributes['printable_help'][$sLanguageCode]) && $qidattributes['printable_help'][$sLanguageCode] != '') {
475                             $sExplanation = $qidattributes['printable_help'][$sLanguageCode];
476                         } elseif ($sExplanation == '') {
477                             // There is only a relevance equation without conditions
478                             $sExplanation = $sEquation;
479                             // No need to show it twice
480                             $sEquation = '&nbsp;';
481                         }
482                         $sExplanation = "<div class='strong'>" . gT('Only answer this question if the following conditions are met:') . "</div> " . $sExplanation;

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/master/application/controllers/admin/export.php(1319): printablesurvey->index("272833", "en", true)
1314      */
1315     private function _exportPrintableHtml($oSurvey, $language, $tempdir)
1316     {
1317         $printableSurvey = new printablesurvey();
1318 
1319         $response = $printableSurvey->index($oSurvey->primaryKey, $language, true);
1320 
1321         $file = "$tempdir/questionnaire_{$oSurvey->getPrimaryKey()}_{$language}.html";
1322 
1323         // remove first slash to get local path for local storage for template assets
1324         $templateDir = Template::getTemplateURL($oSurvey->templateEffectiveName);
#1
+
 /mnt/data/shnoulle/nginx/www/master/application/controllers/admin/export.php(1287): export->_exportPrintableHtml(Survey, "en", "/mnt/data/shnoulle/nginx/www/master/tmp")
1282             //set session for replacement helper if session not set
1283             if (!isset($_SESSION['LEMsid'])) {
1284                 $_SESSION['LEMsid'] = $oSurvey->getPrimaryKey();
1285             }
1286 
1287             $file = $this->_exportPrintableHtml($oSurvey, $language, $tempdir);
1288             $z->add($file, PCLZIP_OPT_REMOVE_PATH, $tempdir);
1289             unlink($file);
1290         }
1291         // set language back (get's changed in loop above)
1292         Yii::app()->language = $siteLanguage;
#2
+
 /mnt/data/shnoulle/nginx/www/master/application/controllers/admin/export.php(1086): export->_exportPrintableHtmls("272833")
1081         } elseif ($action == 'exportstructuretsv') {
1082             $this->_exporttsv($iSurveyID);
1083         } elseif ($action == "exportarchive") {
1084             $this->_exportarchive($iSurveyID);
1085         } elseif ($action == "exportprintables") {
1086             $this->_exportPrintableHtmls($iSurveyID);
1087         }
1088     }
1089 
1090     /**
1091      * Return a list of queXML settings
2020-10-15 14:12:44 nginx/1.18.0 Yii Framework/1.1.22-dev