Changeset 30242 in spip-zone


Ignore:
Timestamp:
Jul 26, 2009, 3:18:21 PM (10 years ago)
Author:
prigent.yohann@…
Message:

split obsolete : utiliser preg_split

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _fondation_/forms_1_9_3_foireux_mais_parfois_utile/inc/forms_edit.php

    r27427 r30242  
    5757        $res = spip_query("SELECT choix FROM spip_forms_champs_choix WHERE id_form="._q($id_form)." AND champ="._q($champ));
    5858        while ($row = spip_fetch_array($res)){
    59                 $lenumero = split('_', $row['choix']);
     59                $lenumero = preg_split('#_#', $row['choix']);
    6060                $lenumero = intval(end($lenumero));
    6161                if ($lenumero>= $n) $n=$lenumero+1;
Note: See TracChangeset for help on using the changeset viewer.