Skip to content

Commit 278e0ed

Browse files
committed
QA: Fix#6313 - Errors when editing multiple devices
1 parent cbdc615 commit 278e0ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ function push_out_host($host_id, $local_data_id = 0, $data_template_id = 0) {
913913
AND data_template_data_id = ?',
914914
array($template_field['id'], $data_source['id']));
915915

916-
if ($old_data['value'] != $host[$field]) {
916+
if (isset($old_value['value']) && $old_data['value'] != $host[$field]) {
917917
cacti_log("WARNING: Poller Cache updated Device[{$host['id']}], Field[$field], Old[{$old_data['value']}], New[{$host[$field]}]", false, 'PCACHE', POLLER_VERBOSITY_MEDIUM);
918918
}
919919

0 commit comments

Comments
 (0)