mirror of
https://github.com/beestat/app.git
synced 2025-07-09 03:04:07 -04:00
Minor changes for PHP8
This commit is contained in:
parent
65f88a6624
commit
69a5ce89de
@ -375,7 +375,10 @@ class profile extends cora\crud {
|
|||||||
// List of thermostat_ids that have data for this timestamp.
|
// List of thermostat_ids that have data for this timestamp.
|
||||||
$relevant_thermostat_ids = [];
|
$relevant_thermostat_ids = [];
|
||||||
foreach($group_thermostats as $possible_relevant_thermostat) {
|
foreach($group_thermostats as $possible_relevant_thermostat) {
|
||||||
if(strtotime($possible_relevant_thermostat['data_begin']) <= $current_timestamp) {
|
if(
|
||||||
|
$possible_relevant_thermostat['data_begin'] === null ||
|
||||||
|
strtotime($possible_relevant_thermostat['data_begin']) <= $current_timestamp
|
||||||
|
) {
|
||||||
$relevant_thermostat_ids[] = $possible_relevant_thermostat['thermostat_id'];
|
$relevant_thermostat_ids[] = $possible_relevant_thermostat['thermostat_id'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user