Bugfix deleted_at

This commit is contained in:
Thomas Zilio 2019-07-23 17:09:10 +02:00
parent cd79dc6ba0
commit d265e90034
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ $query = Util\Query::getQuery($module, [
]);
Util\Query::setSegments(true);
$query = str_replace(['AND `deleted_at` IS NULL', '`deleted_at` IS NULL', 'AND deleted_at IS NULL', 'deleted_at IS NULL'], '', $query);
$query = str_replace(['AND `deleted_at` IS NULL', '`deleted_at` IS NULL AND', '`deleted_at` IS NULL', 'AND deleted_at IS NULL', 'deleted_at IS NULL AND', 'deleted_at IS NULL'], '', $query);
$has_access = !empty($query) ? $dbo->fetchNum($query) !== 0 : true;