Skip to content

Commit fee06e4

Browse files
authored
Merge pull request #57 from Bricklou/patch-1
Prevent errors when `$themeInfo` is null
2 parents 58d71ef + 9537b47 commit fee06e4

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)