From 792303e6655bde2a6c811fdcf10bb587bda7d6cd Mon Sep 17 00:00:00 2001 From: Christian Paminger Date: Wed, 20 Feb 2008 10:27:50 +0000 Subject: [PATCH] --- include/lehrstunde.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/lehrstunde.class.php b/include/lehrstunde.class.php index 679ef963d..acac715b8 100644 --- a/include/lehrstunde.class.php +++ b/include/lehrstunde.class.php @@ -319,10 +319,10 @@ class lehrstunde else { $sql_query.=' AND ( (studiengang_kz='.$studiengang_kz; - if ($sem!='0' && $sem!=null && $sem!=0 && $sem!='') + if ($sem!=null && $sem>=0 && $sem!='') { $sql_query.=" AND (semester=$sem OR semester IS NULL"; - if ($type=='student') + if ($type=='student' && $sem>0) $sql_query.=' OR semester='.($sem+1); $sql_query.=')'; }