From 74c2edc3754b43cfa83c1b70b992415db3b387ab Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Fri, 17 Jul 2020 14:39:39 +0200 Subject: #991: Computers in maintenance mode will not be chosen for remote access. --- admin/WebConsole/rest/remotepc.php | 1 + 1 file changed, 1 insertion(+) (limited to 'admin') diff --git a/admin/WebConsole/rest/remotepc.php b/admin/WebConsole/rest/remotepc.php index f8f3af75..3b4f627c 100644 --- a/admin/WebConsole/rest/remotepc.php +++ b/admin/WebConsole/rest/remotepc.php @@ -95,6 +95,7 @@ SELECT adm.idusuario, ordenadores.idordenador, ordenadores.nombreordenador, orde LEFT JOIN remotepc ON remotepc.id=ordenadores.idordenador WHERE adm.idusuario = '$userid' AND aulas.idcentro = '$ouid' AND aulas.idaula LIKE '$labid' AND aulas.inremotepc = 1 + AND ordenadores.maintenance = 0 AND imagenes.idimagen = '$imageid' AND imagenes.inremotepc = 1 AND (remotepc.reserved < NOW() OR ISNULL(reserved)) ORDER BY remotepc.reserved ASC LIMIT 1; -- cgit v1.2.3-18-g5258