From f6eb240fbefc8cc9d9394e9bbc20c6a76b2b3634 Mon Sep 17 00:00:00 2001 From: "David J. Fiddes" Date: Fri, 14 Jul 2023 14:10:59 +0100 Subject: [PATCH] Add missing member variable in sync_model.php to fix issue #36 Issue #36 was caused by the $feed member variable in the Sync class not being delcared in the class. This was permitted prior to php 8.2 but will now raise a warning. The warning corrupts the JSON output preventing the function from working. Tests: - Sync several feed from an upstream stable emoncms instance --- sync-module/sync_model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/sync-module/sync_model.php b/sync-module/sync_model.php index 3ee388e..e250c38 100644 --- a/sync-module/sync_model.php +++ b/sync-module/sync_model.php @@ -20,6 +20,7 @@ class Sync private $connect_timeout = 5; private $total_timeout = 10; private $log; + private $feed; public function __construct($mysqli,$feed) {