mirror of
https://github.com/beestat/app.git
synced 2025-06-03 05:36:51 -04:00
Minor changes for PHP8
This commit is contained in:
parent
06f907bade
commit
b00d46d238
@ -521,6 +521,7 @@ class thermostat extends cora\crud {
|
|||||||
// Only use profiles with at least a year of data
|
// Only use profiles with at least a year of data
|
||||||
// Only use profiles generated in the past year
|
// Only use profiles generated in the past year
|
||||||
if(
|
if(
|
||||||
|
$other_thermostat['profile']['metadata']['duration'] !== null &&
|
||||||
$other_thermostat['profile']['metadata']['duration'] >= 365 &&
|
$other_thermostat['profile']['metadata']['duration'] >= 365 &&
|
||||||
strtotime($other_thermostat['profile']['metadata']['generated_at']) > strtotime('-1 year') &&
|
strtotime($other_thermostat['profile']['metadata']['generated_at']) > strtotime('-1 year') &&
|
||||||
$other_thermostat['thermostat_id'] !== $thermostat_id
|
$other_thermostat['thermostat_id'] !== $thermostat_id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user