Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Commit

Permalink
Fixing no server error when trying to get connect and gotv strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Uniquoooo committed Oct 2, 2015
1 parent 8b4c667 commit 6ac0272
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Reflex/Database/Models/Match.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,13 @@ public function getRunningAttribute()

public function getConnectAttribute()
{
if (is_null($this->server)) return null;
return "connect {$this->server->ip}" . (!empty($this->config_password) ? ";; password {$this->config_password}" : '');
}

public function getGotvConnectAttribute()
{
if (is_null($this->server)) return null;
return "connect {$this->server->tv_ip}";
}

Expand Down

0 comments on commit 6ac0272

Please sign in to comment.