diff --git a/app/Repositories/Shop/SaleChannels.php b/app/Repositories/Shop/SaleChannels.php index f8b581c3..4d2317a9 100644 --- a/app/Repositories/Shop/SaleChannels.php +++ b/app/Repositories/Shop/SaleChannels.php @@ -8,7 +8,8 @@ class SaleChannels { public static function getDefaultID() { - return self::getDefault()->id; + $default = self::getDefault(); + return $default ? self::getDefault()->id : false; } public static function getDefault()