fixes #2499 make the check_for_updates a unique_exec

This commit is contained in:
plegall
2026-01-04 20:48:27 +01:00
parent e3c80efe63
commit ea80dca422
2 changed files with 13 additions and 4 deletions
+10 -4
View File
@@ -42,10 +42,16 @@ if ($conf['update_notify_check_period'] > 0)
if ($check_for_updates)
{
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
include_once(PHPWG_ROOT_PATH.'admin/include/updates.class.php');
$updates = new updates();
$updates->notify_piwigo_new_versions();
$exec_id = pwg_unique_exec_begins('check_for_updates');
if (false !== $exec_id)
{
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
include_once(PHPWG_ROOT_PATH.'admin/include/updates.class.php');
$updates = new updates();
$updates->notify_piwigo_new_versions();
pwg_unique_exec_ends('check_for_updates', $exec_id);
}
}
}