New bootstrap-based layout #30

Merged
Roflin merged 79 commits from bootstrap into master 2023-03-14 19:11:25 +01:00
Showing only changes of commit aa3a54f237 - Show all commits

View File

@ -27,7 +27,10 @@ class Asset
protected function __construct(array $data)
{
foreach ($data as $attribute => $value)
$this->$attribute = $value;
{
if (property_exists($this, $attribute))
$this->$attribute = $value;
}
if (!empty($data['date_captured']) && $data['date_captured'] !== 'NULL')
$this->date_captured = new DateTime($data['date_captured']);