allow snapshot_view check historical db

This commit is contained in:
fbsanchez 2018-11-16 12:42:08 +01:00
parent 50c3453415
commit 35870d13fd
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ if($utimestamp == '') {
} else { } else {
// Retrieve target data // Retrieve target data
$state = db_get_row('tagente_estado', 'id_agente_modulo', $id, array('id_agente')); $state = db_get_row('tagente_estado', 'id_agente_modulo', $id, array('id_agente'));
$row_state = db_get_row_filter('tagente_datos_string', array('id_agente_modulo' => $id, 'utimestamp' => $utimestamp)); $row_state = db_get_row_filter('tagente_datos_string', array('id_agente_modulo' => $id, 'utimestamp' => $utimestamp), false, 'AND', 1);
$row_state['id_agente'] = $state['id_agente']; $row_state['id_agente'] = $state['id_agente'];
$last_timestamp = date("Y-m-d H:i:s", $row_state['utimestamp']); $last_timestamp = date("Y-m-d H:i:s", $row_state['utimestamp']);
} }