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(