mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Misplaced variable definition
This commit is contained in:
parent
2e7e89a907
commit
6ca117e27f
@ -322,9 +322,9 @@
|
||||
|
||||
// Outcome grade_item.itemnumber start at 1000
|
||||
$max_itemnumber = 999;
|
||||
$exists = false;
|
||||
if ($items = grade_item::fetch_all(array('itemtype'=>'mod', 'itemmodule'=>$fromform->modulename,
|
||||
'iteminstance'=>$fromform->instance, 'courseid'=>$COURSE->id))) {
|
||||
$exists = false;
|
||||
foreach($items as $item) {
|
||||
if ($item->outcomeid == $outcome->id) {
|
||||
$exists = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user