[Aimmath-commit] moodle/mod/math_assignment saveconfig.php,1.1,1.2
Brought to you by:
gustav_delius,
npstrick
|
From: <ma...@us...> - 2003-09-19 20:13:54
|
Update of /cvsroot/aimmath/moodle/mod/math_assignment
In directory sc8-pr-cvs1:/tmp/cvs-serv17637/mod/math_assignment
Modified Files:
saveconfig.php
Log Message:
Minor bug fix
Index: saveconfig.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/math_assignment/saveconfig.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** saveconfig.php 19 Sep 2003 00:01:10 -0000 1.1
--- saveconfig.php 19 Sep 2003 13:41:37 -0000 1.2
***************
*** 41,47 ****
$result = true;
foreach ($subjects as $course => $subject) {
! $subject->course = $course;
! if (!insert_record("math_assignment_subject", $subject))
! $return = false;
}
if (!$result) {
--- 41,49 ----
$result = true;
foreach ($subjects as $course => $subject) {
! if ($subject->server) {
! $subject->course = $course;
! if (!insert_record("math_assignment_subject", $subject))
! $result = false;
! }
}
if (!$result) {
|