diff --git a/src/Modules/ModuleLogo.php b/src/Modules/ModuleLogo.php index 8f6854e..23451cf 100644 --- a/src/Modules/ModuleLogo.php +++ b/src/Modules/ModuleLogo.php @@ -62,9 +62,9 @@ public function generate() protected function compile() { $objImage = new File($this->singleSRC); - $arrMeta = $this->arrMeta[$objImage->basename]; + $arrMeta = $this->arrMeta[$objImage->basename] ?? []; - if ($arrMeta[0] == '') { + if (!array_key_exists(0, $arrMeta) || $arrMeta[0] == '') { $arrMeta[0] = str_replace('_', ' ', preg_replace('/^[0-9]+_/', '', $objImage->filename)); }