From 5ad81759494949caddeeda736c3789964e7e387d Mon Sep 17 00:00:00 2001 From: Gerald Raab Date: Fri, 27 Jul 2007 14:28:18 +0000 Subject: [PATCH] i --- include/studentnote.class.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/include/studentnote.class.php b/include/studentnote.class.php index 2d29fa5a4..04d25db4f 100755 --- a/include/studentnote.class.php +++ b/include/studentnote.class.php @@ -118,7 +118,7 @@ class studentnote $note_x_gewicht_l1 += ($s->note * $ueb1->gewicht); $gewichte_l1 += $ueb1->gewicht; } - else + else $fehlt = true; } } @@ -185,11 +185,16 @@ class studentnote else { if($ueb->load_studentuebung($student_uid, $uebung_id)) - { - $this->note = $ueb->note; - $this->gewicht = $ueb->gewicht; - return true; - } + { + $this->note = $ueb->note; + $this->gewicht = $ueb->gewicht; + return true; + } + else + { + $this->note = null; + return true; + } } }