Skip to content

Commit

Permalink
Add missing member variable in sync_model.php to fix issue emoncms#36
Browse files Browse the repository at this point in the history
Issue emoncms#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
  • Loading branch information
davefiddes committed Jul 14, 2023
1 parent 66e4ca5 commit f6eb240
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sync-module/sync_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Sync
private $connect_timeout = 5;
private $total_timeout = 10;
private $log;
private $feed;

public function __construct($mysqli,$feed)
{
Expand Down

0 comments on commit f6eb240

Please sign in to comment.