Changeset 122344 in spip-zone


Ignore:
Timestamp:
Feb 10, 2020, 10:53:39 AM (2 weeks ago)
Author:
Cerdic
Message:

echappements manquants et var_dump qui trainait

Location:
_plugins_/agenda/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/agenda/trunk

    • Property subgit:lock:dd96df3e636fc4d95c2242e7bcf262f987a95bf0 deleted
    • Property subgit:lock:f60a28fab022345727ed612fffe580a25067e35d set to 2020-02-10T11:56:23.126
  • _plugins_/agenda/trunk/agenda_pipelines.php

    r122284 r122344  
    114114
    115115        // Evenements a la poubelle
    116         sql_delete('spip_evenements', "statut='poubelle' AND maj < ".$flux['args']['date']);
     116        sql_delete('spip_evenements', "statut='poubelle' AND maj < ".sql_quote($flux['args']['date']));
    117117
    118118        // Effacer les inscriptions à des evenement inexistants
     
    124124        );
    125125        while ($row = sql_fetch($res)) {
    126                 var_dump($row);
    127                 sql_delete('spip_evenements_participants','id_evenement='.$row['id_evenement']);
     126                sql_delete('spip_evenements_participants','id_evenement='.intval($row['id_evenement']));
    128127        }
    129128
Note: See TracChangeset for help on using the changeset viewer.