Fix some bugs
This commit is contained in:
		| @ -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() { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user