Skip to content

Commit

Permalink
empty() can't handle objects returned from the TS server.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fonta committed Sep 17, 2016
1 parent eda51d3 commit 5d6f619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/TeamSpeak3/Node/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public function avatarGetName()
*/
public function avatarDownload()
{
if(empty($this["client_flag_avatar"])) return;
if($this["client_flag_avatar"] == NULL) return;

$download = $this->getParent()->transferInitDownload(rand(0x0000, 0xFFFF), 0, $this->avatarGetName());
$transfer = TeamSpeak3::factory("filetransfer://" . (strstr($download["host"], ":") !== FALSE ? "[" . $download["host"] . "]" : $download["host"]) . ":" . $download["port"]);
Expand Down

0 comments on commit 5d6f619

Please sign in to comment.