From c336bc3b5b3fb873f47122c923313d12946eac96 Mon Sep 17 00:00:00 2001 From: SJ Date: Mon, 23 Mar 2015 15:48:06 +0100 Subject: [PATCH] health page fix --- webui/model/health/health.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/model/health/health.php b/webui/model/health/health.php index 68edc854..9f7c1fd6 100644 --- a/webui/model/health/health.php +++ b/webui/model/health/health.php @@ -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(); }