Skip to content

Commit 197054b

Browse files
committed
more
1 parent 20067fa commit 197054b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Model/Resource/TimeEntry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct(array $properties = [], array $options = [])
2323

2424
// extract
2525
$toExtract = ['start','end'];
26-
if(!empty($this->timeInterval)) foreach($toExtract as $key) if(empty($property[$key])) $this->set($key, new \DateTime($this->timeInterval['end']));
26+
if(!empty($this->timeInterval)) foreach($toExtract as $key) if(empty($property[$key])) $this->set($key, new \DateTime($this->timeInterval[$key]));
2727

2828
// max
2929
if(empty($property['max'])) $this->set('max', clone $this->end);

0 commit comments

Comments
 (0)