mirror of
https://github.com/beestat/app.git
synced 2025-08-05 08:40:06 -04:00
Minor changes for PHP8
This commit is contained in:
parent
06e8e5acdd
commit
720181c777
@ -115,7 +115,11 @@ class runtime_thermostat_summary extends cora\crud {
|
||||
$row = $result->fetch_assoc();
|
||||
|
||||
if($row['max_date'] === null) {
|
||||
$populate_begin = strtotime($thermostat['data_begin']); // Just grab everything
|
||||
if($thermostat['data_begin'] === null) {
|
||||
$populate_begin = strtotime($thermostat['first_connected']);
|
||||
} else {
|
||||
$populate_begin = strtotime($thermostat['data_begin']); // Just grab everything
|
||||
}
|
||||
} else {
|
||||
$populate_begin = strtotime($row['max_date']);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user