'null === ...' can be used.

(cherry picked from commit ec96f65)
This commit is contained in:
Yuriy Pikhtarev 2017-05-05 00:59:05 +03:00 committed by Vasily Komrakov
commit 64df3c5538
No known key found for this signature in database
GPG key ID: 558236680C20A69A
8 changed files with 47 additions and 47 deletions

View file

@ -332,7 +332,7 @@ if ($tor_reged && $tor_info) {
$sp_up_tot[$x] += $peer['speed_up'];
$sp_down_tot[$x] += $peer['speed_down'];
$guest = ($peer['user_id'] == GUEST_UID || is_null($peer['username']));
$guest = ($peer['user_id'] == GUEST_UID || null === $peer['username']);
$p_max_up = $peer['uploaded'];
$p_max_down = $peer['downloaded'];