PHP notice

Undefined offset: 0

/usr/local/home/go-lab/go-lab/go-lab/limesurvey/application/controllers/admin/translate.php(176)

164             $all_fields_empty = TRUE;
165 
166             $resultbase = $this->query($type, "querybase", $iSurveyID, $tolang, $baselang);
167             $resultto = $this->query($type, "queryto", $iSurveyID, $tolang, $baselang);
168             $aData['baselangdesc'] = $baselangdesc;
169             $aData['tolangdesc'] = $tolangdesc;
170             $aData['type'] = $type;
171             $aData['translateTabs'] = $this->displayTranslateFieldsHeader($baselangdesc, $tolangdesc, $type);
172             $aViewUrls['output'] .= $this->getController()->render("/admin/translate/translatetabs_view", $aData, true);
173             foreach ( $resultbase as $rowfrom )
174             {
175                 $textfrom = htmlspecialchars_decode($rowfrom[$amTypeOptions["dbColumn"]]);
176                 $textto = $resultto[$i][$amTypeOptions["dbColumn"]];
177                 if ( $associated )
178                 {
179                     $textfrom2 = htmlspecialchars_decode($resultbase2[$i][$amTypeOptions2["dbColumn"]]);
180                     $textto2 = $resultto2[$i][$amTypeOptions2["dbColumn"]];
181                 }
182 
183                 $gid = ( $amTypeOptions["gid"] == TRUE ) ? $gid = $rowfrom['gid'] : NULL;
184                 $qid = ( $amTypeOptions["qid"] == TRUE ) ? $qid = $rowfrom['qid'] : NULL;
185 
186                 $textform_length = strlen(trim($textfrom));
187                 if ( $textform_length > 0 )
188                 {

Stack Trace

#0
+
 /usr/local/home/go-lab/go-lab/go-lab/limesurvey/application/controllers/admin/translate.php(85): translate->_displayUntranslatedFields("797488", "de", "en", array("title", "welcome", "group", "question", ...), ...)
80                 $this->_translateSave($iSurveyID, $tolang, $baselang, $tab_names);
81             }
82 
83             $tolangdesc = $supportedLanguages[$tolang]['description'];
84             // Display tabs with fields to translate, as well as input fields for translated values
85             $aViewUrls = array_merge($aViewUrls, $this->_displayUntranslatedFields($iSurveyID, $tolang, $baselang, $tab_names, $baselangdesc, $tolangdesc));
86             //var_dump(array_keys($aViewUrls));die();
87         }
88 
89         $this->_renderWrappedTemplate('translate', $aViewUrls, $aData);
90     }
#3
+
 /usr/local/home/go-lab/go-lab/go-lab/limesurvey/application/core/Survey_Common_Action.php(100): CAction->runWithParamsInternal(translate, ReflectionMethod, array("surveyid" => "797488", "lang" => "de", "sa" => "index", "iSurveyId" => "797488", ...))
095             $oMethod = new ReflectionMethod($this, $sDefault);
096         }
097 
098         // We're all good to go, let's execute it
099         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
100         return parent::runWithParamsInternal($this, $oMethod, $params);
101     }
102 
103     /**
104     * Some functions have different parameters, which are just an alias of the
105     * usual parameters we're getting in the url. This function just populates
#7
+
 /usr/local/home/go-lab/go-lab/go-lab/limesurvey/application/controllers/AdminController.php(169): CController->run("translate")
164                     $this->redirect($this->createUrl('/admin/authentication/sa/login'));
165                 }
166                 
167             }
168 
169             return parent::run($action);
170     }
171 
172     /**
173     * Routes all the actions to their respective places
174     *
2013-01-27 19:33:28 Apache/2.2.14 (Ubuntu) Yii Framework/1.1.10