Fix returning link_to

pull/3718/head
Isaac Connor 2023-05-30 17:06:35 -04:00
parent 6204dfdecc
commit febf424259
1 changed files with 2 additions and 1 deletions

View File

@ -1095,8 +1095,9 @@ public static function getStatuses() {
if (isset($gp_permissions['Edit'])) return 'Edit';
return $u->Monitors();
}
public function link_to($text='') {
return '<a href="?view=monitor&mid='.$this->Id().'">'.$text ? $text : $this->Name().'</a>';
return '<a href="?view=monitor&mid='.$this->Id().'">'.($text ? $text : $this->Name()).'</a>';
}
} // end class Monitor
?>