1
This commit is contained in:
parent
097dcf2f8a
commit
56c8b9622c
@ -166,11 +166,14 @@ class EventRankingController extends BaseAuthedController
|
||||
|
||||
foreach ($rows as $row) {
|
||||
$ranked += 1;
|
||||
$guildDb = Guild::find($row['guild_id']);
|
||||
|
||||
// $guildDb = null;
|
||||
if (!$userInfo['guild_id']){
|
||||
$this->myRanked['guild'] = array();
|
||||
}else if($userInfo['guild_id'] && $userInfo['guild_id'] == $row['guild_id']){
|
||||
error_log(json_encode($this->myRanked));
|
||||
}
|
||||
if($userInfo['guild_id'] && $userInfo['guild_id'] == $row['guild_id']){
|
||||
$guildDb = Guild::find($row['guild_id']);
|
||||
$this->myRanked['ranked'] = $ranked;
|
||||
$this->myRanked['user'] = array();
|
||||
$this->myRanked['guild'] = Guild::toSimple($guildDb);
|
||||
|
Loading…
x
Reference in New Issue
Block a user