Skip to content

Commit 9537b47

Browse files
authored
Prevent errors when $themeInfo is null
Fixe #56
1 parent 58d71ef commit 9537b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Managers/Theme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function getFullPath($path)
212212
$assetPath = $this->config['theme.folders.assets'].DIRECTORY_SEPARATOR;
213213
$fullPath = $themePath.$assetPath.$path;
214214

215-
if (!file_exists($fullPath) && $themeInfo->has('parent') && !empty($themeInfo->get('parent'))) {
215+
if (isset($themeInfo) && !file_exists($fullPath) && $themeInfo->has('parent') && !empty($themeInfo->get('parent'))) {
216216
$themePath = str_replace(base_path().DIRECTORY_SEPARATOR, '', $this->getThemeInfo($themeInfo->get('parent'))->get('path')).DIRECTORY_SEPARATOR;
217217
$fullPath = $themePath.$assetPath.$path;
218218

0 commit comments

Comments
 (0)