aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www
diff options
context:
space:
mode:
authorM.Gergo2019-09-06 13:29:32 +0200
committerM.Gergo2019-09-06 13:29:32 +0200
commit6d684ff9fb3caf8de057829bda27995d5d9de361 (patch)
tree5923ad3a57a1bc099bd8bb76fe840d6dce096e75 /mayor-orig/mayor-naplo/www
parent8505f5bb03f6bb931a2d97592ad4c3d4ef475b71 (diff)
downloadmayor-6d684ff9fb3caf8de057829bda27995d5d9de361.tar.gz
mayor-6d684ff9fb3caf8de057829bda27995d5d9de361.zip
Rev: 4538rev4538
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));