mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:17:02 +02:00
gui fixes
This commit is contained in:
@ -169,7 +169,7 @@ class ModelHealthHealth extends Model {
|
||||
public function get_oldest_record_ts() {
|
||||
$data = array();
|
||||
|
||||
$query = $this->db->query("SELECT MIN(`arrived`) AS `oldest_record_ts` FROM " . TABLE_META);
|
||||
$query = $this->db->query("SELECT `sent` AS `oldest_record_ts` FROM " . TABLE_META . " WHERE deleted=0 ORDER BY `arrived` ASC LIMIT 1");
|
||||
|
||||
if(isset($query->rows)) {
|
||||
$data = array_pop($query->rows);
|
||||
|
Reference in New Issue
Block a user