diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2019-08-22 13:43:24 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-08-22 13:43:24 +0200 |
commit | 0b97d9697a51f2ddca71b57bd4af57e67f9d0cd4 (patch) | |
tree | 0bccb6c52a5e74b1842c263f5355d13ccc07e0b8 /admin/WebConsole/principal | |
parent | e3b1b1e2a90629eff6d42d0004a8c1b9ae2f1cda (diff) |
#834: Setting a default value for some PHP variables to avoid warnings.
Diffstat (limited to 'admin/WebConsole/principal')
-rw-r--r-- | admin/WebConsole/principal/aula.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/WebConsole/principal/aula.php b/admin/WebConsole/principal/aula.php index f687c0b6..f300c508 100644 --- a/admin/WebConsole/principal/aula.php +++ b/admin/WebConsole/principal/aula.php @@ -187,7 +187,7 @@ function RecorreAulas($cmd){ while (!$rs->EOF){ $idaula=$rs->campos["idaula"]; $nombreaula=$rs->campos["nombreaula"]; - $idordprofesor=$rs->campos["idordprofesor"]; + $idordprofesor=(isset($rs->campos["idordprofesor"]) ? $rs->campos["idordprofesor"] : 0); $cmd->texto="SELECT idordenador,nombreordenador,ip,mac FROM ordenadores WHERE idaula=".$idaula; $k=0; $cadenaip=""; |