Skip to content

Commit

Permalink
fix reference errors reported in https://www.lfs.net/forum/thread/86550
Browse files Browse the repository at this point in the history
  • Loading branch information
T3chArmy committed Mar 29, 2015
1 parent d4b438d commit fd82bab
Showing 1 changed file with 29 additions and 19 deletions.
48 changes: 29 additions & 19 deletions modules/prism_plugins.php
Expand Up @@ -353,8 +353,9 @@ protected function getHostInfo($hostID = null)
if (($host = $PRISM->hosts->getHostById($hostID)) && $host !== null) {
return $host;
}

return null;

$return = null;
return $return;
}

protected function getHostState($hostID = null)
Expand All @@ -364,8 +365,9 @@ protected function getHostState($hostID = null)
if (($state = $PRISM->hosts->getStateById($hostID)) && $state !== null) {
return $state;
}

return null;

$return = null;
return $return;
}

/** Server Methods */
Expand All @@ -384,17 +386,19 @@ protected function &getPlayerByPLID(&$PLID, $hostID = null)
if (($players = $this->getHostState($hostID)->players) && $players !== null && isset($players[$PLID])) {
return $players[$PLID];
}

return null;

$return = null;
return $return;
}

protected function &getPlayerByUCID(&$UCID, $hostID = null)
{
if (($clients =& $this->getHostState($hostID)->clients) && $clients !== null && isset($clients[$UCID])) {
return $clients[$UCID]->players;
}

return null;

$return = null;
return $return;
}

protected function &getPlayerByPName(&$PName, $hostID = null)
Expand All @@ -406,8 +410,9 @@ protected function &getPlayerByPName(&$PName, $hostID = null)
}
}
}

return null;

$return = null;
return $return;
}

protected function &getPlayerByUName(&$UName, $hostID = null)
Expand All @@ -419,8 +424,9 @@ protected function &getPlayerByUName(&$UName, $hostID = null)
}
}
}

return null;

$return = null;
return $return;
}

protected function &getClientByPLID(&$PLID, $hostID = null)
Expand All @@ -429,7 +435,8 @@ protected function &getClientByPLID(&$PLID, $hostID = null)
$UCID = $players[$PLID]->UCID; # As so to avoid Indirect modification of overloaded property NOTICE;
return $this->getClientByUCID($UCID);
}


$return = null;
return $return;
}

Expand All @@ -438,8 +445,9 @@ protected function &getClientByUCID(&$UCID, $hostID = null)
if (($clients =& $this->getHostState($hostID)->clients) && $clients !== null && isset($clients[$UCID])) {
return $clients[$UCID];
}

return null;

$return = null;
return $return;
}

protected function &getClientByPName(&$PName, $hostID = null)
Expand All @@ -452,8 +460,9 @@ protected function &getClientByPName(&$PName, $hostID = null)
}
}
}

return null;

$return = null;
return $return;
}

protected function &getClientByUName(&$UName, $hostID = null)
Expand All @@ -465,8 +474,9 @@ protected function &getClientByUName(&$UName, $hostID = null)
}
}
}

return null;

$return = null;
return $return;
}

// Is
Expand Down

0 comments on commit fd82bab

Please sign in to comment.