Skip to content

Firefly III: a personal finances manager

Fix NULL

James Coleb4aafefc2b7a
diff --git a/app/Repositories/ObjectGroup/CreatesObjectGroups.php b/app/Repositories/ObjectGroup/CreatesObjectGroups.php
index 24f01ed050..56aecce897 100644
--- a/app/Repositories/ObjectGroup/CreatesObjectGroups.php
+++ b/app/Repositories/ObjectGroup/CreatesObjectGroups.php
@@ -46,7 +46,7 @@ trait CreatesObjectGroups
*/
protected function getObjectGroupMaxOrder(): int
{
- return ObjectGroup::max('order');
+ return (int) ObjectGroup::max('order');
}
/**