From fbfcbdf45a67ff7593872f53be4ff747e2991bd2 Mon Sep 17 00:00:00 2001 From: Riccardo Di Dato Date: Sat, 30 Apr 2016 18:51:18 +0200 Subject: [PATCH] =?UTF-8?q?Notizie=20future=20eliminate=20dai=20pi=C3=B9?= =?UTF-8?q?=20letti?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index 2b586ff..5cbbe60 100644 --- a/public/index.php +++ b/public/index.php @@ -87,7 +87,7 @@ try { if (sizeof($lastsNews)<5){ $missing = 5-sizeof($lastsNews); $add = GlobalVariables::get("dao")->query("NotiziaModel", - array("status"=>NotiziaModel::STATUS_ACCEPTED,"_id"=>array('$nin'=>$idArray)), + array("status"=>NotiziaModel::STATUS_ACCEPTED,"_id"=>array('$nin'=>$idArray),"about.data"=>array('$lte'=>new MongoDate())), array("sort"=>array("about.data"=>-1),"limit"=>$missing) ); $lastsNews = array_merge($lastsNews,$add);