Changeset 96373 in spip-zone


Ignore:
Timestamp:
Apr 1, 2016, 10:05:36 AM (5 years ago)
Author:
marcimat@…
Message:

doit toujours être un array, sinon erreur php ensuite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/sommaire/trunk/sommaire_fonctions.php

    r96372 r96373  
    231231        preg_match_all(",(<h([123456])[^>]*>)(.*)(</h\\2>),Uims", $texte, $matches, PREG_SET_ORDER);
    232232        if (!count($matches)) {
    233                 return $texte;
     233                return $sommaire;
    234234        }
    235235
Note: See TracChangeset for help on using the changeset viewer.