diff --git a/editor.php b/editor.php index 31bb0a349..f3a2fb7ec 100755 --- a/editor.php +++ b/editor.php @@ -22,7 +22,6 @@ if (!empty($id_record)) { ]); Util\Query::setSegments(true); } - $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; @@ -150,9 +149,9 @@ if (empty($record) || !$has_access) { - +