diff --git a/src/Prints.php b/src/Prints.php index 7217cb8b9..14f0c17f6 100644 --- a/src/Prints.php +++ b/src/Prints.php @@ -136,7 +136,7 @@ class Prints ]); Util\Query::setSegments(true); - $has_access = database()->fetchNum($query) !== 0; + $has_access = !empty($query) ? $dbo->fetchNum($query) !== 0 : true; } if (empty($infos) || empty($infos['enabled']) || !Permissions::check([], false) || !$has_access) {