From c4acc52ab2df4c8b8877aca142ce2ba6e75e7db4 Mon Sep 17 00:00:00 2001 From: Manfred Kindl Date: Thu, 25 Apr 2013 09:18:00 +0000 Subject: [PATCH] =?UTF-8?q?Negative=20Studiengangskz=20f=C3=BChrt=20bei=20?= =?UTF-8?q?Statistik=20"Anzahl=20Studierende"=20zu=20Fehler.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/student.class.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/include/student.class.php b/include/student.class.php index 5e3864f02..edb4ab6c3 100644 --- a/include/student.class.php +++ b/include/student.class.php @@ -255,16 +255,13 @@ class student extends benutzer } else { - if ($stg_kz>=0) - { - $where.=" tbl_studentlehrverband.studiengang_kz='".addslashes($stg_kz)."'"; - if ($sem!=null) - $where.=" AND tbl_studentlehrverband.semester='".addslashes($sem)."'"; - if ($ver!=null) - $where.=" AND tbl_studentlehrverband.verband='".addslashes($ver)."'"; - if ($grp!=null) - $where.=" AND tbl_studentlehrverband.gruppe='".addslashes($grp)."'"; - } + $where.=" tbl_studentlehrverband.studiengang_kz='".addslashes($stg_kz)."'"; + if ($sem!=null) + $where.=" AND tbl_studentlehrverband.semester='".addslashes($sem)."'"; + if ($ver!=null) + $where.=" AND tbl_studentlehrverband.verband='".addslashes($ver)."'"; + if ($grp!=null) + $where.=" AND tbl_studentlehrverband.gruppe='".addslashes($grp)."'"; } if($stsem!=null)