Removed usage of table aliases with "as" as per MDL-10808

This commit is contained in:
moodler 2007-08-11 14:28:36 +00:00
parent e2c8fe7b09
commit 871ab9a3e2
4 changed files with 8 additions and 8 deletions

View file

@ -416,7 +416,7 @@ class question_category_object {
$cat->name = $newname;
$cat->info = $newinfo;
//never move category where it is the default
if (1 != count_records_sql("SELECT count(*) FROM {$CFG->prefix}question_categories as c1, {$CFG->prefix}question_categories as c2 WHERE c2.id = $updateid AND c1.contextid = c2.contextid")){
if (1 != count_records_sql("SELECT count(*) FROM {$CFG->prefix}question_categories c1, {$CFG->prefix}question_categories c2 WHERE c2.id = $updateid AND c1.contextid = c2.contextid")){
if ($oldcat->contextid == $tocontextid){ // not moving contexts
$cat->parent = $parentid;
if (!update_record("question_categories", $cat)) {