health page fix

This commit is contained in:
SJ 2015-03-23 15:48:06 +01:00
parent 2da754a7de
commit c336bc3b5b

View File

@ -197,7 +197,7 @@ class ModelHealthHealth extends Model {
public function get_first_email_arrival_ts() {
$query = $this->db->query("SELECT `arrived` FROM " . TABLE_META . " ORDER BY id ASC LIMIT 1");
if(isset($query->row)) { return $query->row['arrived']; }
if(isset($query->row['arrived'])) { return $query->row['arrived']; }
return time();
}