summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/WebConsole/rest/remotepc.php1
1 files changed, 1 insertions, 0 deletions
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;