From d0d3921ff6be70bebaf0d1d65ef2b466a78a40ff Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 17 Jan 2023 10:15:50 +0100 Subject: [PATCH] Update CreatesObjectGroups.php Fix thing --- app/Repositories/ObjectGroup/CreatesObjectGroups.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/ObjectGroup/CreatesObjectGroups.php b/app/Repositories/ObjectGroup/CreatesObjectGroups.php index 11387b1238..1150528516 100644 --- a/app/Repositories/ObjectGroup/CreatesObjectGroups.php +++ b/app/Repositories/ObjectGroup/CreatesObjectGroups.php @@ -48,7 +48,7 @@ trait CreatesObjectGroups */ protected function findOrCreateObjectGroup(string $title): ?ObjectGroup { - $title = substr(0,255, $title); + $title = substr($title, 0, 255); $maxOrder = $this->getObjectGroupMaxOrder(); if (!$this->hasObjectGroup($title)) { return ObjectGroup::create(