Skip to content

Commit 8185064

Browse files
author
Chris Hunt
committed
Update file check
1 parent d6f813c commit 8185064

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/Http/Controllers/ItemController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public static function storelogic(Request $request, $id = null): Item
269269

270270
$file = $request->input('icon');
271271
$path_parts = pathinfo($file);
272-
if (!isset($path_parts['extension'])) {
272+
if (!array_key_exists('extension', $path_parts)) {
273273
throw ValidationException::withMessages(['file' => 'Icon URL must have a valid file extension.']);
274274
}
275275
$extension = $path_parts['extension'];

0 commit comments

Comments
 (0)