From 2fe11e106e0f2df5f8c804283295f63100f872d7 Mon Sep 17 00:00:00 2001 From: Tiddo Date: Tue, 29 Oct 2024 15:36:01 +0100 Subject: [PATCH] Potential fix for error in shopbundle v2 --- module/ShopBundle/Controller/ShopController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } /**