Address dynamic class property deprecation warnings

This commit is contained in:
2022-12-25 13:50:33 +01:00
parent 49390c372d
commit 7897172256
17 changed files with 54 additions and 8 deletions

View File

@@ -13,6 +13,7 @@ class Asset
protected $subdir;
protected $filename;
protected $title;
protected $slug;
protected $mimetype;
protected $image_width;
protected $image_height;
@@ -364,7 +365,7 @@ class Asset
public function isImage()
{
return substr($this->mimetype, 0, 5) === 'image';
return isset($this->mimetype) && substr($this->mimetype, 0, 5) === 'image';
}
public function getImage()