Commit f03b6822 authored by Feu's avatar Feu

fix

parent b99306cb
......@@ -63,7 +63,7 @@ class newslist extends itemlist
$sql = new requete($db,"SELECT nvl_nouvelles.*,asso.nom_unix_asso FROM nvl_nouvelles " .
"LEFT JOIN asso ON asso.id_asso = nvl_nouvelles.id_asso " .
"WHERE type_nvl='".NEWS_TYPE_NOTICE."' AND modere_nvl='1' AND asso_seule_nvl='0' AND " .
"DATEDIFF(date_nvl,NOW()) < 14 " .
"DATEDIFF(NOW(),date_nvl) < 14 " .
"LIMIT 3");
while ( $row = $sql->get_row() )
......
......@@ -82,7 +82,7 @@ if ( $site->user->id <= 0 )
$sql = new requete($site->db,"SELECT nvl_nouvelles.*,asso.nom_unix_asso FROM nvl_nouvelles " .
"LEFT JOIN asso ON asso.id_asso = nvl_nouvelles.id_asso " .
"WHERE type_nvl='".NEWS_TYPE_NOTICE."' AND modere_nvl='1' AND asso_seule_nvl='0' AND " .
"DATEDIFF(date_nvl,NOW()) < 14 " .
"DATEDIFF(NOW(),date_nvl) < 14 " .
"LIMIT 3");
if ( $sql->lines > 0 )
......
......@@ -66,7 +66,7 @@ output_news($sql,$ids);
$sql = new requete($site->db,"SELECT nvl_nouvelles.*,asso.nom_unix_asso FROM nvl_nouvelles " .
"LEFT JOIN asso ON asso.id_asso = nvl_nouvelles.id_asso " .
"WHERE type_nvl='".NEWS_TYPE_NOTICE."' AND modere_nvl='1' AND asso_seule_nvl='0' AND " .
"DATEDIFF(date_nvl,NOW()) < 14 " .
"DATEDIFF(NOW(),date_nvl) < 14 " .
"LIMIT 3");
output_news($sql,$ids);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment