mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
This reverts commit ebbb7cbdcf
.
This commit is contained in:
@@ -56,7 +56,7 @@ if (! empty($entPhysical)) {
|
||||
|
||||
if (isset($db_states[$id])) { // update the db
|
||||
$db_state = $db_states[$id];
|
||||
$update = array_diff_assoc($state, $db_state);
|
||||
$update = array_diff($state, $db_state);
|
||||
|
||||
if (! empty($update)) {
|
||||
if (array_key_exists('entStateLastChanged', $update) && is_null($update['entStateLastChanged'])) {
|
||||
|
@@ -64,7 +64,7 @@ if (! empty($entityStatesIndexes)) {
|
||||
->format('Y-m-d H:i:s');
|
||||
|
||||
// check if anything has changed
|
||||
$update = array_diff_assoc(
|
||||
$update = array_diff(
|
||||
$new_states,
|
||||
dbFetchRow(
|
||||
'SELECT * FROM entityState WHERE entity_state_id=?',
|
||||
|
Reference in New Issue
Block a user