aboutsummaryrefslogtreecommitdiff
path: root/lib/functions.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2021-11-05 15:59:20 +0100
committerJan-Hendrik Willms <tleilax+github@gmail.com>2021-11-05 15:59:20 +0100
commitd0d03433aed8eb5931dd1a9a1d367c3c2ea3e0c7 (patch)
tree938c0b633ef9c8031280623cd4fa6cf7a98b8460 /lib/functions.php
parentcb26115a88a4ffb8844697b37eabbcf239cc74ec (diff)
re #380
Diffstat (limited to 'lib/functions.php')
-rw-r--r--lib/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/functions.php b/lib/functions.php
index eb0970e..e2cc1d7 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;
}
}