diff --git a/include/news.class.php b/include/news.class.php index 6644c524c..eb401917f 100644 --- a/include/news.class.php +++ b/include/news.class.php @@ -102,35 +102,32 @@ class news extends basis_db public function getnews($maxalter, $studiengang_kz, $semester, $all=false, $fachbereich_kurzbz=null, $maxnews) { $qry = "SELECT * FROM campus.tbl_news WHERE true"; - - if($maxalter!=0) + if(trim($maxalter)!='0') { $qry.= " AND (now()-datum) $qry"; if($this->db_query($qry)) { while($row = $this->db_fetch_object())