Skip to content

Commit

Permalink
Merge pull request #57 from Bricklou/patch-1
Browse files Browse the repository at this point in the history
Prevent errors when `$themeInfo` is null
  • Loading branch information
Shipu authored Sep 7, 2021
2 parents 58d71ef + 9537b47 commit fee06e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Managers/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function getFullPath($path)
$assetPath = $this->config['theme.folders.assets'].DIRECTORY_SEPARATOR;
$fullPath = $themePath.$assetPath.$path;

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

Expand Down

0 comments on commit fee06e4

Please sign in to comment.