summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorOpenGnsys <OpenGnsys@opengnsys.com>2020-11-05 11:24:57 +0100
committerOpenGnsys <OpenGnsys@opengnsys.com>2020-11-05 11:24:57 +0100
commit87f4bc9730716a1967832ff7c99a205c949702a0 (patch)
treec8e465956e52725b1d2bdc765f46a7d7a5d86e15 /admin
parente7ffae8cc5081f7780b82beac7e7034ae328990b (diff)
#944 Fix status in console, when there is only one computer in lab without columns and row property.
Diffstat (limited to 'admin')
-rw-r--r--admin/WebConsole/principal/aula.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/WebConsole/principal/aula.php b/admin/WebConsole/principal/aula.php
index 729549aa..4dda22cd 100644
--- a/admin/WebConsole/principal/aula.php
+++ b/admin/WebConsole/principal/aula.php
@@ -246,7 +246,7 @@ function RecorreOrdenadores($cmd){
$Mrow[$k]=$rs->campos["n_row"]??0;
$Mcol[$k]=$rs->campos["n_col"]??0;
// Calcula nº máximo de columnas para pintar el aula (-1, modo antiguo)
- if ($max_col === -1 or $Mrow[$k] === 0 or $Mcol[$k] === 0 or isset($map[$Mrow[$k]][$Mcol[$k]])) {
+ if ($max_col === -1 or $Mrow[$k] === '0' or $Mcol[$k] === '0' or isset($map[$Mrow[$k]][$Mcol[$k]])) {
$max_col = -1;
} else {
$max_col = max($max_col, $Mcol[$k]);