Changeset 70480 in spip-zone for _plugins_/selection_d_objets/branches/1/inc/verifier_ordre.php
- Timestamp:
- Mar 6, 2013, 4:44:21 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/selection_d_objets/branches/1/inc/verifier_ordre.php
r69181 r70480 3 3 if (!defined("_ECRIRE_INC_VERSION")) return; 4 4 function inc_verifier_ordre_dist($where){ 5 $ result_num = sql_select("*","spip_selection_objets", $where,'', "ordre,id_objet");5 $sql = sql_select("id_selection_objet","spip_selection_objets", $where,'', "ordre,id_selection_objet"); 6 6 $ordre = 0; 7 7 8 8 // on vérifie l'ordre des objets déjà enregistrés et on corrige si beselection_objetin 9 9 10 while ($row = sql_fetch($ result_num)) {10 while ($row = sql_fetch($sql)) { 11 11 $ordre++; 12 12 $where = array( 13 'id_objet='.$row['id_objet'], 14 'id_objet_dest='.$row['id_objet_dest'], 15 'objet_dest='.sql_quote($row['objet_dest']), 16 'lang='.sql_quote($row['lang']), 13 'id_selection_objet='.$row['id_selection_objet'], 17 14 ); 18 15
Note: See TracChangeset
for help on using the changeset viewer.