From d0d03433aed8eb5931dd1a9a1d367c3c2ea3e0c7 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+github@gmail.com>
Date: Fri, 5 Nov 2021 15:59:20 +0100
Subject: [PATCH] re #380

---
 lib/functions.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/functions.php b/lib/functions.php
index eb0970e1067..e2cc1d7f3b0 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -225,7 +225,7 @@ function get_object_type($id, $check_only = [])
         $type = null;
         foreach ($tests as $query => $types) {
             $type = DBManager::get()->fetchColumn($query, [$id]);
-            if ($type !== null) {
+            if ($type) {
                 break;
             }
         }
-- 
GitLab