MDL-18293 $DB->somethiong is using exceptions, no need for ifs tehre, removing useless strings

This commit is contained in:
skodak
2009-06-03 20:00:08 +00:00
parent 6aa104ed96
commit bf8e93d704
14 changed files with 16 additions and 61 deletions
+1 -3
View File
@@ -407,9 +407,7 @@ class qformat_default {
$category->parent = $parent;
$category->sortorder = 999;
$category->stamp = make_unique_id_code();
if (!($id = $DB->insert_record('question_categories', $category))) {
print_error("cannotcreatecategory");
}
$id = $DB->insert_record('question_categories', $category);
$category->id = $id;
$parent = $id;
}