mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +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
|
@ -114,8 +114,8 @@ function question_make_default_categories($contexts) {
|
|||
|
||||
function question_can_delete_cat($todelete){
|
||||
global $CFG;
|
||||
$record = get_record_sql("SELECT count(*) as count, c1.contextid as contextid FROM {$CFG->prefix}question_categories as c1,
|
||||
{$CFG->prefix}question_categories as c2 WHERE c2.id = $todelete
|
||||
$record = get_record_sql("SELECT count(*) as count, c1.contextid as contextid FROM {$CFG->prefix}question_categories c1,
|
||||
{$CFG->prefix}question_categories c2 WHERE c2.id = $todelete
|
||||
AND c1.contextid = c2.contextid GROUP BY c1.contextid");
|
||||
$contextid = $record->contextid;
|
||||
$count = $record->count;
|
||||
|
@ -935,4 +935,4 @@ function require_login_in_context($contextorid = null){
|
|||
require_login();
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue