From 16ff2ead3175efb4f90ed05c5e8e3491f288a37f Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Tue, 13 Oct 2020 18:29:33 -0400 Subject: [PATCH] Fix warning when a user has many scheduled tasks to run When a user has more than m_cron::MAX_SOCKETS actions to run when the cron script is invoked, it uses a rolling window while running the batch execution in CURL. The followin warning happens because the url key isn't being used when getting the information out of the array. --- bureau/class/m_cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/m_cron.php b/bureau/class/m_cron.php index 716a663e..7d1558de 100644 --- a/bureau/class/m_cron.php +++ b/bureau/class/m_cron.php @@ -363,7 +363,7 @@ class m_cron { // (it's important to do this before removing the old one) if ($i < count($urls)) { $ch = curl_init(); - $options[CURLOPT_URL] = $urls[$i++]; // increment i + $options[CURLOPT_URL] = $urls[$i++]['url']; // increment i curl_setopt_array($ch, $options); if (strtolower(substr($options[CURLOPT_URL], 0, 5)) == "https") { curl_setopt($ch, CURLOPT_CAINFO, m_cron::DEFAULT_CAFILE);