Changeset 90105 in spip-zone


Ignore:
Timestamp:
Jun 11, 2015, 7:03:37 AM (6 years ago)
Author:
peetdu@…
Message:

Notice PHP en moins : $xmlrang? peut être vide

Location:
_plugins_/menus/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/menus/trunk/inc/menus.php

    r64367 r90105  
    8989                                $xml = reset($xml['entree']);
    9090                                $entree['nom'] = _T_ou_typo(spip_xml_aplatit($xml['nom']));
    91                                 $entree['rang'] = intval(trim(spip_xml_aplatit($xml['rang'])));
    92                                 $entree['rang'] = ($entree['rang'] ? $entree['rang'] : 1000);
     91                                $entree['rang'] = intval(trim(spip_xml_aplatit(!empty($xml['rang']) ? $xml['rang'] : 1000)));
    9392                                $entree['description'] = isset($xml['description']) ? _T_ou_typo(spip_xml_aplatit($xml['description'])) : '';
    9493                                $entree['icone'] = isset($xml['icone']) ? find_in_path(reset($xml['icone'])) : '';
  • _plugins_/menus/trunk/paquet.xml

    r90094 r90105  
    22        prefix="menus"
    33        categorie="navigation"
    4         version="1.5.7"
     4        version="1.5.8"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.1.*]"
Note: See TracChangeset for help on using the changeset viewer.