Changeset 104004 in spip-zone


Ignore:
Timestamp:
Apr 18, 2017, 1:36:33 PM (2 years ago)
Author:
cedric@…
Message:

oups, fix erreur de priorite d'operateur

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/commandes/trunk/commandes_pipelines.php

    r103971 r104004  
    146146                );
    147147                $mark = '<!--bank-->';
    148                 if ($p = strpos($flux['data'], $mark) !== false) {
    149                         $flux['data'] = substr_replace($flux['data'], $ins, $p + strlen($mark) - 1, 0);
     148                if (($p = strpos($flux['data'], $mark)) !== false) {
     149                        $flux['data'] = substr_replace($flux['data'], $ins, $p + strlen($mark), 0);
    150150                }
    151151                else {
Note: See TracChangeset for help on using the changeset viewer.