1
0
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:
Jon Ziebell 2023-01-22 09:00:00 -05:00
parent 06e8e5acdd
commit 720181c777

View File

@ -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']);
}