From 750ea59bf4eb28fddc4e0325dfd500629e1463e0 Mon Sep 17 00:00:00 2001 From: Barry Brands Date: Wed, 26 Feb 2025 15:50:44 +0100 Subject: [PATCH] Quickfix, added check for $id type --- lib/Service/ObjectService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Service/ObjectService.php b/lib/Service/ObjectService.php index 83d3724402..f64bea81e3 100644 --- a/lib/Service/ObjectService.php +++ b/lib/Service/ObjectService.php @@ -371,7 +371,9 @@ public function findMultiple(array $ids): array { $result = []; foreach ($ids as $id) { - $result[] = $this->find($id); + if (is_string($id) === true || is_int($id) === true) { + $result[] = $this->find($id); + } } return $result;