summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2021-05-11 10:54:53 +0200
committerIrina Gómez <irinagomez@us.es>2021-05-11 10:54:53 +0200
commitf738ae919bc52909a379ece8aac35e61a3fb0fb7 (patch)
tree6a9fcc549638d19695caa829aff25b98e487b634 /admin/WebConsole
parentf672c5e22bb308527ca1e1c889d95d41348f5f91 (diff)
#1047 console - status:
There is a function that collects the computers in the classroom and another that paints them, passing the computers from one to another through a global variable. If a classroom has fewer computers than the previous one, they paint more than necessary. The problem has arisen when including the layout of the classroom in the status: when it was painted in an old way there was an index that limited the number of computers, with the new layout of the classroom it takes all of those in the variable. The variable is flushed every time the computers are collected.
Diffstat (limited to 'admin/WebConsole')
-rw-r--r--admin/WebConsole/principal/aula.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/admin/WebConsole/principal/aula.php b/admin/WebConsole/principal/aula.php
index 81c7b676..dedb01b8 100644
--- a/admin/WebConsole/principal/aula.php
+++ b/admin/WebConsole/principal/aula.php
@@ -233,6 +233,9 @@ function RecorreOrdenadores($cmd){
global $cadenaip;
+ // empty variable - Fixes error in status called from organizational unit (#1047)
+ $map = [];
+
$cmd->texto.= " ORDER BY n_row, n_col";
$rs=new Recordset;
$rs->Comando=&$cmd;