Skip to content

Commit

Permalink
Homepage|ServerInfo: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jul 13, 2013
1 parent 8a5e7b7 commit f3be8af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/classes/masterserver.class.php
Expand Up @@ -79,10 +79,10 @@ static public function constructFrom(&$props)
$s = new ServerInfo();
foreach($props as $key => $value)
{
// Is this a known property?
if(!isset($s[$key])) continue;

// Ensure the variable type is not altered (we intend to serialize).
settype($value, gettype($s[$key]));
// Will ensure the variable type is not altered.
$s[$key] = $value;
}
return $s;
Expand Down

0 comments on commit f3be8af

Please sign in to comment.