From 87f4bc9730716a1967832ff7c99a205c949702a0 Mon Sep 17 00:00:00 2001 From: OpenGnsys Date: Thu, 5 Nov 2020 11:24:57 +0100 Subject: #944 Fix status in console, when there is only one computer in lab without columns and row property. --- admin/WebConsole/principal/aula.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- cgit v1.2.3-18-g5258