fix: sentry issue

This commit is contained in:
Andras Bacsai 2023-11-28 14:27:38 +01:00
parent 4af471ee31
commit 706e4b13ee

View File

@ -275,8 +275,11 @@ function generateLabelsApplication(Application $application, ?ApplicationPreview
return $labels->all();
}
function isDatabaseImage(string $image)
function isDatabaseImage(?string $image = null)
{
if (is_null($image)) {
return false;
}
$image = str($image);
if ($image->contains(':')) {
$image = str($image);