From febf4242597cc234a9d36d24beb471904c5d7fbb Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 30 May 2023 17:06:35 -0400 Subject: [PATCH] Fix returning link_to --- web/includes/Monitor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/includes/Monitor.php b/web/includes/Monitor.php index fa6d35617..be12fce2a 100644 --- a/web/includes/Monitor.php +++ b/web/includes/Monitor.php @@ -1095,8 +1095,9 @@ public static function getStatuses() { if (isset($gp_permissions['Edit'])) return 'Edit'; return $u->Monitors(); } + public function link_to($text='') { - return ''.$text ? $text : $this->Name().''; + return ''.($text ? $text : $this->Name()).''; } } // end class Monitor ?>