Changeset 112033 in spip-zone


Ignore:
Timestamp:
Oct 18, 2018, 7:49:03 AM (7 months ago)
Author:
marcimat@…
Message:

Utiliser array_column plutôt que array_map + reset / array_shift

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/plan/action/deplacer_objets.php

    r100746 r112033  
    5353        // ne modifier que si les emplacements n'ont pas déjà changé !
    5454        $ids = sql_allfetsel($_id_table, $table, array(sql_in($_id_table, $ids), $champ . '=' . sql_quote($id_rubrique_old)));
    55         $ids = array_map('array_shift', $ids);
     55        $ids = array_column($ids, $_id_table);
    5656
    5757        include_spip('action/editer_objet');
     
    8080                        array(sql_in($_id_table, $ids), $champ . '=' . sql_quote($id_rubrique_old))
    8181                );
    82                 $ids = array_map('array_shift', $ids);
     82                $ids = array_column($ids, $_id_table);
    8383                if ($ids) {
    8484                        foreach ($ids as $id) {
Note: See TracChangeset for help on using the changeset viewer.