Changeset 66410 in spip-zone


Ignore:
Timestamp:
Oct 1, 2012, 6:45:57 PM (7 years ago)
Author:
eric@…
Message:

La table forum n'accepte plus id_article mais id_objet, objet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/sarkaspip/branches/v_32/inc/sarkaspip_filtres.php

    r61748 r66410  
    335335        // Nombre messages de forum de l'article
    336336        $from = array('spip_forum AS t1');
    337         $where = array('t1.id_article='.sql_quote($id));
     337        $where = array('t1.id_objet='.sql_quote($id), 't1.objet='.sql_quote('article'));
    338338        $nb = sql_countsel($from, $where);
    339339        // Nombre de tickets termines pour le jalon
Note: See TracChangeset for help on using the changeset viewer.