X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fplugins-dist%2Fsites%2Fgenie%2Fsyndic.php;fp=www%2Fplugins-dist%2Fsites%2Fgenie%2Fsyndic.php;h=eb47437398b7bc5bf01941d8a1387afd618669ce;hp=17f7789f11cc515de2de0077c1871d600429a70f;hb=f854641371bdfbaba8fbab6212853d9795ba8cc8;hpb=d18fcb8f27a4016e3fa7b50a9b2255d529dca543 diff --git a/www/plugins-dist/sites/genie/syndic.php b/www/plugins-dist/sites/genie/syndic.php index 17f7789..eb47437 100644 --- a/www/plugins-dist/sites/genie/syndic.php +++ b/www/plugins-dist/sites/genie/syndic.php @@ -37,6 +37,7 @@ function executer_une_syndication() { // On va tenter un site 'sus' ou 'off' de plus de 24h, et le passer en 'off' // s'il echoue $where = sql_in("syndication", array('sus','off')) . " + AND statut<>'refuse' AND NOT(" . sql_date_proche('date_syndic', (0 - _PERIODE_SYNDICATION_SUSPENDUE) , "MINUTE") . ')'; $id_syndic = sql_getfetsel("id_syndic", "spip_syndic", $where, '', "date_syndic", "1"); if ($id_syndic) { @@ -46,6 +47,7 @@ function executer_une_syndication() { // Et un site 'oui' de plus de 2 heures, qui passe en 'sus' s'il echoue $where = "syndication='oui' + AND statut<>'refuse' AND NOT(" . sql_date_proche('date_syndic', (0 - _PERIODE_SYNDICATION) , "MINUTE") . ')'; $id_syndic = sql_getfetsel("id_syndic", "spip_syndic", $where, '', "date_syndic", "1");