1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Minor changes for PHP8

This commit is contained in:
Jon Ziebell 2023-01-22 10:12:09 -05:00
parent 06f907bade
commit b00d46d238

View File

@ -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