removed weird == null comparing

This commit is contained in:
Steffen Schröder
2014-03-31 21:54:51 +02:00
parent d6cbba3d4b
commit fd0d84dfb0
7 changed files with 10 additions and 20 deletions

View File

@ -15,9 +15,7 @@ class DedimaniaPlayer {
public $options = '';
public function __construct($player) {
if ($player == null) {
return;
}
if (!$player) return;
$this->login = $player['Login'];
$this->maxRank = $player['MaxRank'];

View File

@ -27,7 +27,7 @@ class RecordData {
* @param $record
*/
public function __construct($record) {
if ($record == null) {
if (!$record) {
$this->nullRecord = true;
return;
}