/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-2016 *
+ * Copyright (c) 2001-2020 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
*/
function breves_optimiser_base_disparus($flux) {
$n = &$flux['data'];
- $mydate = $flux['args']['date'];
-
+ $mydate = sql_quote($flux['args']['date']);
# les breves qui sont dans une id_rubrique inexistante
$res = sql_select(
LEFT JOIN spip_rubriques AS R
ON B.id_rubrique=R.id_rubrique',
'R.id_rubrique IS NULL
- AND B.maj < ' . sql_quote($mydate)
+ AND B.maj < ' . $mydate
);
$n += optimiser_sansref('spip_breves', 'id_breve', $res);