diff --git a/AportaContenido.php b/AportaContenido.php index 685bc40..b2785a9 100644 --- a/AportaContenido.php +++ b/AportaContenido.php @@ -210,7 +210,11 @@ class AportaContenido { return $salida; } case 'opcion': - list($opcion, $parametro) = explode("&", $this->opcionActual); + if (strstr($this->opcionActual, "&")) { + list($opcion, $parametro) = explode("&", $this->opcionActual); + } else { + $opcion = $this->opcionActual; $parametro = ""; + } switch ($opcion) { case 'bienvenido': return "Menú Principal"; @@ -244,13 +248,17 @@ class AportaContenido { // if (!$this->registrado) { // return $this->mensajeRegistro(); // } - list($opcion, $parametro) = explode("&", $this->opcionActual); + if (strstr($this->opcionActual, "&")) { + list($opcion, $parametro) = explode("&", $this->opcionActual); + } else { + $opcion = $this->opcionActual; $parametro = ""; + } switch ($opcion) { case 'bienvenido': $mensaje = '