mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
fixed 'AS' for PostgreSQL; merged from MOODLE_15_STABLE
This commit is contained in:
parent
f150292f82
commit
03c40bb7ec
@ -33,7 +33,7 @@ $GRADEPREFSDEFAULTS = array('use_advanced' => 0,
|
||||
|
||||
function grade_get_category_weight($course, $category) {
|
||||
global $CFG;
|
||||
$sql = "SELECT id, weight, drop_x_lowest, bonus_points, hidden, c.id cat_id
|
||||
$sql = "SELECT id, weight, drop_x_lowest, bonus_points, hidden, c.id AS cat_id
|
||||
FROM {$CFG->prefix}grade_category c
|
||||
WHERE c.courseid=$course
|
||||
AND c.name='$category'";
|
||||
|
Loading…
x
Reference in New Issue
Block a user