aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www/policy/private
diff options
context:
space:
mode:
authorM.Gergo2020-03-18 03:21:19 +0100
committerM.Gergo2020-03-18 03:21:19 +0100
commit25b091e6e06862ee7f7631471c47f9cd94a2019f (patch)
tree4466d5a0dae86fcef7e7003743c5b883b0ead4ce /mayor-orig/mayor-naplo/www/policy/private
parent6345ea101955e59386b6b0be0309bd4e84cd98f9 (diff)
downloadmayor-25b091e6e06862ee7f7631471c47f9cd94a2019f.tar.gz
mayor-25b091e6e06862ee7f7631471c47f9cd94a2019f.zip
Rev: 4622rev4622
Diffstat (limited to 'mayor-orig/mayor-naplo/www/policy/private')
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php
index 31511d7b..79d49bd0 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php
@@ -110,6 +110,7 @@ if ( $skin == 'ajax'
// set defaults ++
// if (strtotime($igDt) > strtotime($_TANEV['zarasDt'])) $igDt = $_TANEV['zarasDt'];
$maxIgDt = date('Y-m-d', strtotime('next Saturday', strtotime($_TANEV['kovetkezoKezdesDt'])));
+
if (strtotime($igDt) > strtotime($maxIgDt)) $igDt = $maxIgDt;
elseif (strtotime($igDt) < strtotime($_TANEV['kezdesDt'])) $igDt = $_TANEV['kezdesDt'];
if (date('w', strtotime($igDt)) == 0) $igDt = date('Y-m-d',strtotime('-1 days',strtotime($igDt))); // Hogy vasárnap még a múltheti látszódjon
@@ -269,10 +270,10 @@ if ( $skin == 'ajax'
) && (__NAPLOADMIN || __VEZETOSEG)) {
$_NAPOK = _genNapok($tolDt,$igDt);
for ($i=0; $i<count($_NAPOK); $i++) {
- checkNaplo($_NAPOK[$i]);
+ checkNaplo($_NAPOK[$i]);
}
-
}
+
/* ------------------------------------------------- */
// Ezt nem használja a getHaladási...