Fix issue with Database Lock.

This commit is contained in:
José González 2022-11-28 07:47:47 +00:00
parent c8df0dec0c
commit 695f457a09
1 changed files with 7 additions and 1 deletions

View File

@ -2313,7 +2313,13 @@ function db_get_lock(string $lockname, int $expiration_time=86400) :?int
}
if ($lock_status === false) {
return null;
db_pandora_audit(
AUDIT_LOG_SYSTEM,
'Issue in Database Lock',
'system'
);
return (int) null;
}
return (int) $lock_status;