We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20067fa commit 197054bCopy full SHA for 197054b
1 file changed
src/Model/Resource/TimeEntry.php
@@ -23,7 +23,7 @@ public function __construct(array $properties = [], array $options = [])
23
24
// extract
25
$toExtract = ['start','end'];
26
- if(!empty($this->timeInterval)) foreach($toExtract as $key) if(empty($property[$key])) $this->set($key, new \DateTime($this->timeInterval['end']));
+ if(!empty($this->timeInterval)) foreach($toExtract as $key) if(empty($property[$key])) $this->set($key, new \DateTime($this->timeInterval[$key]));
27
28
// max
29
if(empty($property['max'])) $this->set('max', clone $this->end);
0 commit comments