Misplaced variable definition

This commit is contained in:
nicolasconnault 2008-01-08 06:07:56 +00:00
parent 2e7e89a907
commit 6ca117e27f

View File

@ -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;