PHP warning

Undefined array key "description"

/media/shnoulle/data/webdev/master/application/helpers/admin/import_helper.php(123)

111     }
112 
113     if (isset($xml->group_l10ns->rows->row)) {
114         foreach ($xml->group_l10ns->rows->row as $row) {
115             $insertdata = array();
116             foreach ($row as $key => $value) {
117                 $insertdata[(string) $key] = (string) $value;
118             }
119             unset($insertdata['id']);
120             // now translate any links
121             // TODO: Should this depend on $bTranslateLinksFields?
122             $insertdata['group_name'] = translateLinks('survey', $iOldSID, $iNewSID, $insertdata['group_name']);
123             $insertdata['description'] = translateLinks('survey', $iOldSID, $iNewSID, $insertdata['description']);
124             if (isset($aGIDReplacements[$insertdata['gid']])) {
125                 $insertdata['gid'] = $aGIDReplacements[$insertdata['gid']];
126             } else {
127                 continue; //Skip invalid group ID
128             }
129             $oQuestionGroupL10n = new QuestionGroupL10n();
130             $oQuestionGroupL10n->setAttributes($insertdata, false);
131             $oQuestionGroupL10n->save();
132         }
133     }
134 
135     // Import questions table ===================================================================================

Stack Trace

#0
+
 /media/shnoulle/data/webdev/master/application/controllers/QuestionGroupsAdministrationController.php(489): XMLImportGroup("/media/shnoulle/data/webdev/master/tmp/qsxrx6sxfk9gcy9fx28r", 954741, false)
484             // IF WE GOT THIS FAR, THEN THE FILE HAS BEEN UPLOADED SUCCESFULLY
485             if (strtolower($sExtension) == 'lsg') {
486                 $aImportResults = XMLImportGroup(
487                     $sFullFilepath,
488                     $iSurveyID,
489                     (App()->request->getPost('translinksfields') == '1')
490                 );
491             } else {
492                 App()->user->setFlash('error', gT("Unknown file extension"));
493                 $this->redirect(array('questionGroupsAdministration/importview/surveyid/' . $surveyid));
494             }
#5
+
 /media/shnoulle/data/webdev/master/application/controllers/LSBaseController.php(145): CController->run("import")
140                     $this->redirect(array('/admin/authentication/sa/login'));
141                 }
142             }
143         }
144 
145         parent::run($action);
146     }
147 
148     /**
149      * Load and set session vars
150      *
#9
+
 /media/shnoulle/data/webdev/master/index.php(161): CApplication->run()
156 require_once APPPATH . 'core/LSYii_Application' . EXT;
157 
158 $config = require_once(APPPATH . 'config/internal' . EXT);
159 
160 Yii::$enableIncludePath = false;
161 Yii::createApplication('LSYii_Application', $config)->run();
162 
163 /* End of file index.php */
164 /* Location: ./index.php */
2023-12-15 09:23:06 nginx/1.22.1 Yii Framework/1.1.28