Skip to content

Commit e46c28d

Browse files
committed
Another fix on import
1 parent 7e2bb47 commit e46c28d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/AltRedirectController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function import(Request $request)
131131
'from' => $row[0],
132132
'to' => $row[1],
133133
'redirect_type' => $row[2],
134-
'sites' => isset($row[3]) ? explode(',', $row[3]) : false,
134+
'sites' => !empty($row[3] ?? false) ? explode(',', $row[3]) : ['default'],
135135
'id' => ! empty($row[4] ?? false) ? $row[4] : uniqid(),
136136
];
137137
// Skip the redirect if it'll create an infinite loop (handles empty redirects too)

0 commit comments

Comments
 (0)