Skip to content

Commit

Permalink
Oups
Browse files Browse the repository at this point in the history
  • Loading branch information
solracsf authored and ArtificialOwl committed Apr 5, 2022
1 parent ee2b793 commit 3b2b73e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Model/Circle.php
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,7 @@ public function importFromDatabase(array $data, string $prefix = ''): IQueryRow
$creation = $this->get($prefix . 'creation', $data);
$dateTime = DateTime::createFromFormat('Y-m-d H:i:s', $creation);
$timestamp = $dateTime ? $dateTime->getTimestamp() : (int) strtotime('Y-m-d H:i:s', $creation);
$this->setCreation($timestamp);

$this->setPopulation($this->getInt('population', $this->getSettings()));
$this->setPopulationInherited($this->getInt('populationInherited', $this->getSettings()));
Expand Down

0 comments on commit 3b2b73e

Please sign in to comment.