diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2019-01-19 14:19:11 +0100 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-01-19 14:19:11 +0100 |
commit | 3d004554d8830b77fd7d6ddc3be99dfef5bd8172 (patch) | |
tree | 8ee49c3ac989124b7e7eba370229355209e74858 /admin/WebConsole/principal/repositorios.php | |
parent | b966d519406e3e6c300681ce8f6bf39383f3b644 (diff) |
#834: Correct undefined variables and some spell checking.
Diffstat (limited to 'admin/WebConsole/principal/repositorios.php')
-rw-r--r-- | admin/WebConsole/principal/repositorios.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/admin/WebConsole/principal/repositorios.php b/admin/WebConsole/principal/repositorios.php index e2144b7f..b7142bd6 100644 --- a/admin/WebConsole/principal/repositorios.php +++ b/admin/WebConsole/principal/repositorios.php @@ -325,7 +325,8 @@ function ContextualXMLComandos($litambito,$ambito){ global $cmd; global $TbMsg; $maxlongdescri=0; - $rs=new Recordset; + $descrip=""; + $rs=new Recordset; $cmd->texto="SELECT idcomando,descripcion,pagina,gestor,funcion FROM comandos WHERE activo=1 AND aplicambito & ".$ambito.">0 @@ -335,9 +336,10 @@ function ContextualXMLComandos($litambito,$ambito){ $layerXML=""; $rs->Primero(); while (!$rs->EOF){ - if (isset($TbMsg["COMMAND_".$rs->campos["funcion"]])) {$descrip=$TbMsg["COMMAND_".$rs->campos["funcion"]];}else{$descrip;} - //$descrip=$TbMsg["COMMAND_".$rs->campos["funcion"]]; - if (empty ($descrip)) { + if (isset($TbMsg["COMMAND_".$rs->campos["funcion"]])) { + $descrip=$TbMsg["COMMAND_".$rs->campos["funcion"]]; + } + if (empty($descrip)) { $descrip=$rs->campos["funcion"]; } $layerXML.='<ITEM'; |