diff --git a/src/Observers/ItemObserver.php b/src/Observers/ItemObserver.php index d4761d8..42aa0b2 100644 --- a/src/Observers/ItemObserver.php +++ b/src/Observers/ItemObserver.php @@ -70,7 +70,7 @@ protected function cleanModel(MenuItem $item) } } - if (request()->get('link_type') === MenuItem::TYPE_EMPTY) { + if ((int) request()->get('link_type') === MenuItem::TYPE_EMPTY) { $item->{menuItem::linkTypesAttributes()[MenuItem::TYPE_EMPTY]} = 1; } else { $item->{menuItem::linkTypesAttributes()[MenuItem::TYPE_EMPTY]} = 0;