diff --git a/lib/functions.php b/lib/functions.php index eb0970e106744d9051f38e8ae67b04fd34ea314c..e2cc1d7f3b0152be307bec88d70dac2003ec1a35 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; } }