Skip to content

Commit 4d27524

Browse files
authored
Set default value for $lastOrder
1 parent 23d0bd1 commit 4d27524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static function registerRoutes()
4141

4242
public static function import()
4343
{
44-
$lastOrder = Menu::max('order');
44+
$lastOrder = Menu::max('order') ?: 0;
4545

4646
$root = [
4747
'parent_id' => 0,

0 commit comments

Comments
 (0)