Skip to content

Commit

Permalink
Fixed #206
Browse files Browse the repository at this point in the history
  • Loading branch information
tltneon committed Aug 21, 2024
1 parent b2faabc commit 08aef92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lgsl_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,9 @@ public function updateValues(&$data) {
$this->_other = array_merge($this->_other, $data['o'] ?? []);
$this->_server = array_merge($this->_server, $data['s'] ?? []);
if ($this->isOnline()) {
$this->_players = array_merge($this->_players, $data['p'] ?? []);
if (is_array($data['p']) && count($data['p']) > 0) {
$this->_players = $data['p'];
}
} else {
$this->_players = [];
}
Expand Down

0 comments on commit 08aef92

Please sign in to comment.