From 6d684ff9fb3caf8de057829bda27995d5d9de361 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 6 Sep 2019 13:29:32 +0200 Subject: Rev: 4538 --- .../www/policy/private/naplo/haladasi/pluszora-pre.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mayor-orig/mayor-naplo/www') diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/pluszora-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/pluszora-pre.php index 55914d4a..544b9b23 100644 --- a/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/pluszora-pre.php +++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/pluszora-pre.php @@ -17,7 +17,7 @@ $tankorId = readVariable($_POST['tankorId'], 'id', null); $blokkId = readVariable($_POST['tankorBlokkId'], 'id', null); $teremId = readVariable($_POST['teremId'], 'id', null); - $SzabadOrak = ''; + $SzabadOrak = array(); require_once('include/modules/naplo/share/tanar.php'); require_once('include/modules/naplo/share/osztaly.php'); @@ -76,12 +76,16 @@ // tanar Napi órái $Orak = getTanarNapiOrak($tanarId, $dt); // Szabad Órák - for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) if (!is_array($Orak[$i])) $SzabadOrak[] = $i; + for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) + if (!is_array($Orak[$i])) + array_push($SzabadOrak,$i); } elseif (isset($osztalyId)) { // osztalyNapiOrai $Orak = getOsztalyNapiOrak($osztalyId, $dt); // Szabad Órák - for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) if (!is_array($Orak[$i][0])) $SzabadOrak[] = $i; + for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) + if (!is_array($Orak[$i][0])) + array_push($SzabadOrak[],$i); } if (isset($ora)) { $Termek = getSzabadTermek(array('dt' => $dt, 'ora' => $ora)); -- cgit v1.2.3