1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-16 11:30:55 +01:00

Bugfix deleted_at

This commit is contained in:
Thomas Zilio 2019-07-23 17:09:10 +02:00
parent cd79dc6ba0
commit d265e90034

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;