diff options
-rw-r--r-- | admin/WebConsole/rest/remotepc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/rest/remotepc.php b/admin/WebConsole/rest/remotepc.php index 030ba37d..7486b4f6 100644 --- a/admin/WebConsole/rest/remotepc.php +++ b/admin/WebConsole/rest/remotepc.php @@ -381,7 +381,7 @@ $app->post('/ous/:ouid/labs/:labid/clients/:clntid/session', 'validateApiKey', writeRemotepcLog($app->request()->getResourceUri(). ": Parameters: deadLine=$deadLine"); // Get client's data. $cmd->texto = <<<EOD -SELECT adm.idadministradorcentro, ordenadores.idordenador, remotepc.reserved +SELECT adm.idadministradorcentro, ordenadores.idordenador, remotepc.* FROM remotepc RIGHT JOIN ordenadores ON remotepc.id=ordenadores.idordenador JOIN aulas USING(idaula) @@ -397,7 +397,7 @@ EOD; $rs->Primero(); if (checkAdmin($rs->campos["idadministradorcentro"]) and checkParameter($rs->campos["idordenador"])) { // Check if client is reserved. - if (! is_null($rs->campos["reserved"])) { + if (! is_null($rs->campos["urllogin"])) { // Read query data. $clntid = $rs->campos["idordenador"]; # Removing previous commands from OGAgent operations queue. |