Browse Source

Notice PHP en moins : $xml['rang'] peut être vide

svn/root/tags/v1.7.25
peetdu@gmail.com 8 years ago
parent
commit
190f2f3a72
  1. 3
      inc/menus.php
  2. 2
      paquet.xml

3
inc/menus.php

@ -88,8 +88,7 @@ function menus_charger_infos($type, $info=""){
if (count($xml['entree'])){
$xml = reset($xml['entree']);
$entree['nom'] = _T_ou_typo(spip_xml_aplatit($xml['nom']));
$entree['rang'] = intval(trim(spip_xml_aplatit($xml['rang'])));
$entree['rang'] = ($entree['rang'] ? $entree['rang'] : 1000);
$entree['rang'] = intval(trim(spip_xml_aplatit(!empty($xml['rang']) ? $xml['rang'] : 1000)));
$entree['description'] = isset($xml['description']) ? _T_ou_typo(spip_xml_aplatit($xml['description'])) : '';
$entree['icone'] = isset($xml['icone']) ? find_in_path(reset($xml['icone'])) : '';
$entree['refuser_sous_menu'] = isset($xml['refuser_sous_menu']);

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="menus"
categorie="navigation"
version="1.5.7"
version="1.5.8"
etat="stable"
compatibilite="[3.0.0;3.1.*]"
logo="prive/themes/spip/images/menu-32.png"

Loading…
Cancel
Save