Skip to content

Commit 2ab50ee

Browse files
committed
bugfix
1 parent 18377e4 commit 2ab50ee

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "isaeken/laravel-theme-system",
3-
"version": "v2.3",
3+
"version": "v2.3.1",
44
"description": "Theme system for Laravel",
55
"keywords": [
66
"theme",

src/ThemeSystem.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ public function isAssetsEnabled(): bool
5353
*/
5454
public function findThemes(): array
5555
{
56+
if (theme_path() === false) {
57+
return [];
58+
}
59+
5660
$themes = [];
5761
foreach (scandir(theme_path()) as $path) {
5862
if ($path == '.' || $path == '..') {

0 commit comments

Comments
 (0)