Fix some bugs

This commit is contained in:
2024-09-15 02:10:12 -07:00
parent fab791d2e9
commit a2b5773be0
5 changed files with 8 additions and 4 deletions

View File

@ -2,7 +2,6 @@
/* Copyright (C) 2021 Alexander Rosenberg
* This file is AGPL v3. See LICENSE file for more information
*/
require 'options.php';
class Album {
private const PATH_PREFIX = 'albums';
@ -38,7 +37,11 @@ class Album {
$this->title = $root->{'title'};
$this->thumbnail = $root->{'thumbnail'};
$this->images = $root->{'images'};
$this->metadata = $root->{'metadata'};
if (property_exists($root, 'metadata')) {
$this->metadata = $root->{'metadata'};
} else {
$this->metadata = null;
}
}
private function invalidate() {