Fix
parent
ba66c17fed
commit
f5d74ab9fe
|
|
@ -176,7 +176,7 @@ class LinkosDeviceLogService
|
|||
|
||||
foreach ($logs as $log) {
|
||||
foreach (['conductivity', 'humidity', 'temperature', 'n', 'p', 'k'] as $key) {
|
||||
if (! is_null($v = $log->{$key})) {
|
||||
if (is_null($v = $log->{$key})) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -267,7 +267,7 @@ class LinkosDeviceLogService
|
|||
'pm25',
|
||||
'pm10',
|
||||
] as $key) {
|
||||
if (! is_null($v = $log->{$key})) {
|
||||
if (is_null($v = $log->{$key})) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -392,7 +392,7 @@ class LinkosDeviceLogService
|
|||
|
||||
foreach ($logs as $log) {
|
||||
foreach (['chlorine', 'conductivity', 'oxygen', 'ph', 'temperature', 'turbidity'] as $key) {
|
||||
if (! is_null($v = $log->{$key})) {
|
||||
if (is_null($v = $log->{$key})) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue