mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Removed usage of table aliases with "as" as per MDL-10808
This commit is contained in:
parent
e2c8fe7b09
commit
871ab9a3e2
4 changed files with 8 additions and 8 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue