mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
fixed db warning; merged from MOODLE_19_STABLE
This commit is contained in:
parent
a450311936
commit
bf9211ef78
@ -72,7 +72,10 @@ foreach($co_custom as $oid=>$outcome) {
|
||||
}
|
||||
|
||||
// now check all used standard outcomes are in outcomes_course too
|
||||
if ($realused = get_records_select('grade_items', "courseid=$courseid and outcomeid IS NOT NULL", '', 'outcomeid')) {
|
||||
$sql = "SELECT DISTINCT outcomeid
|
||||
FROM {$CFG->prefix}grade_items
|
||||
WHERE courseid=$courseid and outcomeid IS NOT NULL";
|
||||
if ($realused = get_records_sql($sql)) {
|
||||
$realused = array_keys($realused);
|
||||
foreach ($realused as $oid) {
|
||||
if (array_key_exists($oid, $standardoutcomes)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user