Removed usage of table aliases with "as" as per MDL-10808
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user