Skip to content

Commit 1d5fc5e

Browse files
authored
Could have no redirects
1 parent f4a64ed commit 1d5fc5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UpdateScripts/IncreaseUrlSizeOnRedirects.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function shouldUpdate($newVersion, $oldVersion)
1818
$redirectConnection = config('statamic.redirect.redirect_connection');
1919

2020
if ($redirectConnection === 'stache') {
21-
return ! Redirect::all()->first()->source_md5();
21+
return ! Redirect::all()->first()?->source_md5();
2222
}
2323

2424
if ($redirectConnection === 'default') {

0 commit comments

Comments
 (0)