diff --git a/module/ShopBundle/Controller/ShopController.php b/module/ShopBundle/Controller/ShopController.php index 905550251..7253ffd1e 100644 --- a/module/ShopBundle/Controller/ShopController.php +++ b/module/ShopBundle/Controller/ShopController.php @@ -323,7 +323,7 @@ public function getActiveBanEnd() return null; } - return $activeBans[-1]->getEndTimestamp(); + return end($activeBans)->getEndTimestamp(); } /**