From d6beb2ff6af9aba2d61ed7e1a99ee8286b335ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Perona?= Date: Wed, 12 Jun 2024 14:58:03 -0400 Subject: [PATCH] force int type --- inc/Engine/Preload/Controller/PreloadUrl.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inc/Engine/Preload/Controller/PreloadUrl.php b/inc/Engine/Preload/Controller/PreloadUrl.php index 32ab830a5e..c2ece4929e 100755 --- a/inc/Engine/Preload/Controller/PreloadUrl.php +++ b/inc/Engine/Preload/Controller/PreloadUrl.php @@ -206,7 +206,6 @@ protected function get_mobile_user_agent_prefix() { * @return void */ public function process_pending_jobs() { - $pending_actions = $this->queue->get_pending_preload_actions(); // Retrieve batch size limits and request timing estimation. @@ -271,7 +270,7 @@ function ( $row ) use ( $pending_actions ) { // Make those hanging jobs failed. foreach ( $stuck_rows as $row ) { - $this->query->make_status_failed( $row->id ); + $this->query->make_status_failed( (int) $row->id ); } // Add new jobs in progress. @@ -283,7 +282,7 @@ function ( $row ) use ( $pending_actions ) { continue; } - $this->query->make_status_inprogress( $row->id ); + $this->query->make_status_inprogress( (int) $row->id ); $this->queue->add_job_preload_job_preload_url_async( $row->url ); }