aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-naplo/www')
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/pluszora-pre.php10
1 files changed, 7 insertions, 3 deletions
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));