From 0ed0b655d24c75c66b1cf39cb5b821ac1883eaf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Wed, 12 Sep 2007 13:15:13 +0000 Subject: [PATCH] --- content/student/studentDBDML.php | 4 +- content/student/studentdetailoverlay.xul.php | 4 +- content/student/studentenoverlay.xul.php | 2 +- content/student/studentoverlay.js.php | 7 ++++ rdf/nation.rdf.php | 19 +++++++++ rdf/studienerfolg.rdf.php | 2 +- vilesci/admin/xslvorlagen/zeugnis.xsl | 41 ++++++++++---------- 7 files changed, 53 insertions(+), 26 deletions(-) diff --git a/content/student/studentDBDML.php b/content/student/studentDBDML.php index 87ac75d76..b028abef5 100644 --- a/content/student/studentDBDML.php +++ b/content/student/studentDBDML.php @@ -1395,7 +1395,7 @@ if(!$error) { $zeugnisnote = new zeugnisnote($conn, null, true); $error = false; - if(!is_numeric($_POST['matrikelnummer_'.$i]) || !is_numeric($_POST['note_'.$i])) + if(!is_numeric(trim($_POST['matrikelnummer_'.$i])) || !is_numeric($_POST['note_'.$i])) { $error = true; $errormsg = "\nMatrikelnummer oder Note ist ungueltig: ".$_POST['matrikelnummer_'.$i].' - '.$_POST['note_'.$i]; @@ -1403,7 +1403,7 @@ if(!$error) if(!$error) { - $qry = "SELECT student_uid FROM public.tbl_student WHERE matrikelnr='".$_POST['matrikelnummer_'.$i]."'"; + $qry = "SELECT student_uid FROM public.tbl_student WHERE trim(matrikelnr)='".trim($_POST['matrikelnummer_'.$i])."'"; if($result = pg_query($conn, $qry)) { if($row = pg_fetch_object($result)) diff --git a/content/student/studentdetailoverlay.xul.php b/content/student/studentdetailoverlay.xul.php index 8574e9cdb..8b2e3f46e 100644 --- a/content/student/studentdetailoverlay.xul.php +++ b/content/student/studentdetailoverlay.xul.php @@ -81,7 +81,7 @@ echo '';