Merge branch 'ent-9912-14580-guardia-problema-ejecucion-en-la-tareas-programadas' into 'develop'

Ent 9912 14580 guardia problema ejecucion en la tareas programadas

See merge request artica/pandorafms!5296
This commit is contained in:
Rafael Ameijeiras 2022-12-19 14:33:01 +00:00
commit 6982d79bbd
1 changed files with 7 additions and 1 deletions

View File

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