MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup

This commit is contained in:
skodak
2009-06-13 18:34:43 +00:00
parent a8f3a651c0
commit fc29e51b2d
20 changed files with 25 additions and 86 deletions
+1 -5
View File
@@ -1688,11 +1688,7 @@ class default_questiontype {
foreach ($extraquestionfields as $field) {
$record->$field = backup_todb($recordinfo['#'][strtoupper($field)]['0']['#']);
}
if (!$DB->insert_record($questionextensiontable, $record)) {
echo "Can't insert record in $questionextensiontable when restoring " .
$this->name() . ' question id ' . $question;
$status = false;
}
$DB->insert_record($questionextensiontable, $record);
}
//TODO restore extra data in answers
return $status;