Skip to content

Commit 8b79df2

Browse files
authored
Merge pull request #33 from hldh214/master
Set default value for $lastOrder
2 parents 23d0bd1 + 4d27524 commit 8b79df2

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)