From a259e7c9f28aa98409ccdc0204dada29c0397ca1 Mon Sep 17 00:00:00 2001 From: Gerald Simane Date: Thu, 2 Jul 2009 08:01:39 +0000 Subject: [PATCH] --- include/news.class.php | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) 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())