X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/b687b65a2231029a3791756823d934e56e365baa..9aa1852b91ffebb85791293a28556e9c113c2dbf:/lib/MECON/Marco/Seccion.php
diff --git a/lib/MECON/Marco/Seccion.php b/lib/MECON/Marco/Seccion.php
index 46f75e1..8a2433c 100644
--- a/lib/MECON/Marco/Seccion.php
+++ b/lib/MECON/Marco/Seccion.php
@@ -255,23 +255,15 @@ Devuelve 1 si pertenece a la seccion, en caso contrario 0.
$sec = array ();
if ($this->verifSeccionSeleccionada($link_sel)) {
- if ($ultimo) {
- $sec[] = $link_start.''.$link_end;
- }
- else {
- $sec[] = $link_start.''.$link_end;
- }
+ $sec[] = $link_start.''.$link_end;
}
else {
- if ($ultimo) {
- $sec[] = $link_start.''.$link_end;
- }
- else {
- $sec[] = $link_start.''.$link_end;
- }
+ $sec[] = $link_start.''.$link_end;
}
- $sec[] = ''.$link_start.' '.$this->_nombre.$link_end.'';
+ $nombre = strstr($this->_nombre, '-');
+ $nombre = substr($nombre, 1);
+ $sec[] = ' '.$nombre.'
';
return $sec;
}
// -X2C