diff --git a/admin/index.php b/admin/index.php index 5de0e583ddc37819ee0de3ac508473efe2368306..a926cc29cf9afd9cedfd638d428f526fba94553e 100644 --- a/admin/index.php +++ b/admin/index.php @@ -97,7 +97,7 @@ while($dsondage = $sondage->FetchNextObject(false)) { } -$sondage=$connect->Execute("select * from sondage ORDER BY date_fin ASC"); +$sondage=$connect->Execute("select * from sondage WHERE date_fin > DATE_SUB(now(), INTERVAL 3 MONTH) ORDER BY date_fin ASC"); $nbsondages=$sondage->RecordCount(); echo $nbsondages.' '. _("polls in the database at this time") .'<br><br>'."\n";