From b00d46d2382785d78c1a1de4a108dac8c6aa8135 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Sun, 22 Jan 2023 10:12:09 -0500 Subject: [PATCH] Minor changes for PHP8 --- api/thermostat.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/thermostat.php b/api/thermostat.php index fc2c2eb..5b4df44 100644 --- a/api/thermostat.php +++ b/api/thermostat.php @@ -521,6 +521,7 @@ class thermostat extends cora\crud { // Only use profiles with at least a year of data // Only use profiles generated in the past year if( + $other_thermostat['profile']['metadata']['duration'] !== null && $other_thermostat['profile']['metadata']['duration'] >= 365 && strtotime($other_thermostat['profile']['metadata']['generated_at']) > strtotime('-1 year') && $other_thermostat['thermostat_id'] !== $thermostat_id