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

@ -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();
}
}
?>
?>