projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a8d4b0f
)
DataObjects/Core_holiday.php
author
Alan Knowles
<alan@roojs.com>
Mon, 9 Nov 2020 06:04:43 +0000
(14:04 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 9 Nov 2020 06:04:43 +0000
(14:04 +0800)
DataObjects/Core_holiday.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_holiday.php
b/DataObjects/Core_holiday.php
index
75fcd88
..
25f2d67
100644
(file)
--- a/
DataObjects/Core_holiday.php
+++ b/
DataObjects/Core_holiday.php
@@
-32,7
+32,7
@@
class Pman_Core_DataObjects_Core_holiday extends DB_DataObject
}
// do we alredy have the data for this year.
}
// do we alredy have the data for this year.
- $d = DB_D
A
taObject::Factory('core_holiday');
+ $d = DB_D
a
taObject::Factory('core_holiday');
$d->country = $country;
$d->orderBy('holiday_date DESC');
$d->limit(1);
$d->country = $country;
$d->orderBy('holiday_date DESC');
$d->limit(1);
@@
-74,7
+74,7
@@
class Pman_Core_DataObjects_Core_holiday extends DB_DataObject
for ($i = strtotime($start_dt); $i < strtotime($end_dt) ; $i += (60 * 60 * 24)) {
for ($i = strtotime($start_dt); $i < strtotime($end_dt) ; $i += (60 * 60 * 24)) {
- $d = DB_D
A
taObject::Factory('core_holiday');
+ $d = DB_D
a
taObject::Factory('core_holiday');
$d->country = $country;
$d->holiday_date = date('Y-m-d', strtotime($i));
if (!$d->count()) {
$d->country = $country;
$d->holiday_date = date('Y-m-d', strtotime($i));
if (!$d->count()) {