summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/includes
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2019-01-19 14:19:11 +0100
committerRamón M. Gómez <ramongomez@us.es>2019-01-19 14:19:11 +0100
commit3d004554d8830b77fd7d6ddc3be99dfef5bd8172 (patch)
tree8ee49c3ac989124b7e7eba370229355209e74858 /admin/WebConsole/includes
parentb966d519406e3e6c300681ce8f6bf39383f3b644 (diff)
#834: Correct undefined variables and some spell checking.
Diffstat (limited to 'admin/WebConsole/includes')
-rw-r--r--admin/WebConsole/includes/pintaTablaConfiguraciones.php4
-rw-r--r--admin/WebConsole/includes/tftputils.php2
2 files changed, 2 insertions, 4 deletions
diff --git a/admin/WebConsole/includes/pintaTablaConfiguraciones.php b/admin/WebConsole/includes/pintaTablaConfiguraciones.php
index 27e6fac4..15a7ef94 100644
--- a/admin/WebConsole/includes/pintaTablaConfiguraciones.php
+++ b/admin/WebConsole/includes/pintaTablaConfiguraciones.php
@@ -138,9 +138,7 @@ function tablaConfiguracionesInventarioSoftware($cmd,$idordenador){
WHERE ordenadores.idordenador=".$idordenador."
AND nombresos.nombreso!='DATA'
ORDER BY ordenadores_particiones.numdisk,ordenadores_particiones.numpar";
-
- $rs->Comando=&$cmd;
- $rs=new Recordset;
+ $rs=new Recordset;
$rs->Comando=&$cmd;
if (!$rs->Abrir())
return($tablaHtml); // Error al abrir recordset
diff --git a/admin/WebConsole/includes/tftputils.php b/admin/WebConsole/includes/tftputils.php
index 5cf2da88..6a9dbe3b 100644
--- a/admin/WebConsole/includes/tftputils.php
+++ b/admin/WebConsole/includes/tftputils.php
@@ -266,7 +266,7 @@ function updateBootRepo ($cmd, $repoid) {
if ($pxecode = @file_get_contents($macfile)) {
$pxecode = preg_replace("/ogrepo=[^ ]*/", "ogrepo=$repo", $pxecode);
if (! @file_put_contents($macfile, $pxecode)) {
- $erros++;
+ $errors++;
}
}
$rs->Siguiente();