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 -3
View File
@@ -508,9 +508,7 @@
$branch->flag = $branchflag;
$branch->timeseen = time();
if (!$DB->insert_record("lesson_branch", $branch)) {
print_error("Error: could not insert row into lesson_branch table");
}
$DB->insert_record("lesson_branch", $branch);
// this is called when jumping to random from a branch table
if($newpageid == LESSON_UNSEENBRANCHPAGE) {