Thursday release
This commit is contained in:
parent
bbec08ac4f
commit
505f3bcd63
7 changed files with 20 additions and 12 deletions
|
|
@ -121,6 +121,10 @@ class Team
|
|||
return $this->team_name;
|
||||
}
|
||||
|
||||
function get_name_url() {
|
||||
return urlencode($this->team_name);
|
||||
}
|
||||
|
||||
function get_auth_level() {
|
||||
return $this->auth_level;
|
||||
}
|
||||
|
|
@ -195,10 +199,10 @@ class Team
|
|||
function get_rank()
|
||||
{
|
||||
$teams = Team::get_top();
|
||||
for ($i = 0; $i < 10; $i++){
|
||||
$tid = $teams[$i]->get_id();
|
||||
if ($tid == $this->id)
|
||||
return $i;
|
||||
foreach($teams as $k => $t)
|
||||
{
|
||||
if ($t->get_id() == $this->id)
|
||||
return $k + 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
@ -232,9 +236,8 @@ class Team
|
|||
$i = 0;
|
||||
if ($ids)
|
||||
{
|
||||
foreach ($ids as $id){
|
||||
foreach ($ids as $id)
|
||||
$array[] = new Exercice($id['id_exercice']);
|
||||
}
|
||||
}
|
||||
|
||||
return $array;
|
||||
|
|
|
|||
Reference in a new issue