mirror of
https://github.com/danielbrendel/hortusfox-web.git
synced 2026-01-06 12:50:11 -06:00
#312 Validate that asset exists
This commit is contained in:
@@ -536,6 +536,10 @@ class UtilsModule {
|
||||
return $asset;
|
||||
}
|
||||
|
||||
if (!file_exists(public_path() . '/img/' . $asset)) {
|
||||
return asset('img/placeholder.jpg');
|
||||
}
|
||||
|
||||
return asset('img/' . $asset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user