From d433590f74663d5db6a09416c15c08cfbce16da7 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 10 Jan 2020 12:45:30 -0500 Subject: [PATCH] use find_one in stead of new to use Cached Server --- web/includes/Monitor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/includes/Monitor.php b/web/includes/Monitor.php index b725963f2..a15e88d2d 100644 --- a/web/includes/Monitor.php +++ b/web/includes/Monitor.php @@ -128,7 +128,7 @@ class Monitor extends ZM_Object { } public function Server() { - return new Server($this->{'ServerId'}); + return Server::find_one(array('Id'=>$this->{'ServerId'})); } public function __call($fn, array $args){