diff --git a/includes/polling/functions.inc.php b/includes/polling/functions.inc.php index cba317bd8..4eb12609b 100644 --- a/includes/polling/functions.inc.php +++ b/includes/polling/functions.inc.php @@ -265,12 +265,10 @@ function poll_device($device, $options) { rrdtool_update($ping_rrd, "N:$ping_time"); } - $update_array = array( - 'last_polled' => array('NOW()'), - 'last_polled_timetaken' => $device_time, - 'last_ping' => array('NOW()'), - 'last_ping_timetaken' => $ping_time, - ); + $update_array['last_polled'] = array('NOW()'); + $update_array['last_polled_timetaken'] = $device_time; + $update_array['last_ping'] = array('NOW()'); + $update_array['last_ping_timetaken'] = $ping_time; // echo("$device_end - $device_start; $device_time $device_run"); echo "Polled in $device_time seconds\n";