fixes #2341 force reload conf.send_piwigo_infos_last_notice to avoid double exec

This commit is contained in:
plegall 2025-03-06 11:58:57 +01:00
parent 8eae7bafa9
commit c931118561

View file

@ -2444,6 +2444,11 @@ function send_piwigo_infos()
return;
}
// $conf['send_piwigo_infos_last_notice'] has been loaded in include/common, maybe
// a few seconds earlier, we need a refreshed value from the database. Another
// concurrent execution might have already performed send_piwigo_infos 3 seconds ago.
load_conf_from_db('param = "send_piwigo_infos_last_notice"');
$do_send = false;
if (isset($conf['send_piwigo_infos_last_notice']))
{