Skip to content

Commit 9461b69

Browse files
author
Tom Schlick
committed
check for values before use
1 parent cc2596e commit 9461b69

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ServiceProvider.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ protected function registerElixirLinks()
5959
$revPath = public_path().'/build/rev-manifest.json';
6060
if (file_exists($revPath)) {
6161
$revMap = json_decode($revPath, true);
62-
foreach (array_values($revMap) as $path) {
63-
$instance->queueResource('/'.ltrim($path, '/'));
62+
if ($revMap) {
63+
foreach (array_values($revMap) as $path) {
64+
$instance->queueResource('/'.ltrim($path, '/'));
65+
}
6466
}
6567
}
6668
}

0 commit comments

Comments
 (0)