X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/9aa1852b91ffebb85791293a28556e9c113c2dbf..d32af4c6a95ab6ed27a78e2fee1244e2b3bd4009:/lib/MECON/Marco/Seccion.php diff --git a/lib/MECON/Marco/Seccion.php b/lib/MECON/Marco/Seccion.php index 8a2433c..0489872 100644 --- a/lib/MECON/Marco/Seccion.php +++ b/lib/MECON/Marco/Seccion.php @@ -116,6 +116,7 @@ class MECON_Marco_Seccion { $imgSelect = @strval($seccion['imagenSelect']); $this->_tipoMenu = @strval($seccion['tipoMenu']); $this->_link = @strval($seccion['link']); + $this->_imagen = new MECON_Marco_ImagenAnimada( $imgComun, $imgMouseOn, $imgSelect, @@ -219,7 +220,7 @@ Devuelve 1 si pertenece a la seccion, en caso contrario 0. $retorno = 0; if (isset($tmp) && array_key_exists($this->_nombre,$tmp)) { foreach ($tmp[$this->_nombre] as $t) { - if ($link_sel == $t) { + if (rtrim($link_sel, '/') == rtrim($t, '/')) { $retorno = 1; } }