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 | |
parent | b966d519406e3e6c300681ce8f6bf39383f3b644 (diff) |
#834: Correct undefined variables and some spell checking.
Diffstat (limited to 'admin/WebConsole/principal')
-rw-r--r-- | admin/WebConsole/principal/configuraciones.php | 2 | ||||
-rw-r--r-- | admin/WebConsole/principal/repositorios.php | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/admin/WebConsole/principal/configuraciones.php b/admin/WebConsole/principal/configuraciones.php index 7c6e02aa..39093914 100644 --- a/admin/WebConsole/principal/configuraciones.php +++ b/admin/WebConsole/principal/configuraciones.php @@ -280,7 +280,7 @@ function datosGruposOrdenadores($cmd,$idgrupo) } $rs->Cerrar(); } - if ($numordenadores==0) + if ($ordenadores==0) { $cmd->texto="SELECT *, COUNT(*) AS numordenadores FROM gruposordenadores 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'; |