From c9311185613888317335bffd34edfd42e558f2bc Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 6 Mar 2025 11:58:57 +0100 Subject: [PATCH] fixes #2341 force reload conf.send_piwigo_infos_last_notice to avoid double exec --- include/functions.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/functions.inc.php b/include/functions.inc.php index a736237cf..f16142735 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -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'])) {