v 1.4.0
- Updated local libraries - PHP 7.1 support - New, proper caching method - Special cache folder
This commit is contained in:
@ -446,8 +446,6 @@ class TeamSpeak3_Node_Channel extends TeamSpeak3_Node_Abstract
|
||||
public function delete($force = FALSE)
|
||||
{
|
||||
$this->getParent()->channelDelete($this->getId(), $force);
|
||||
|
||||
unset($this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -74,8 +74,6 @@ class TeamSpeak3_Node_Channelgroup extends TeamSpeak3_Node_Abstract
|
||||
public function delete($force = FALSE)
|
||||
{
|
||||
$this->getParent()->channelGroupDelete($this->getId(), $force);
|
||||
|
||||
unset($this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -285,7 +285,7 @@ class TeamSpeak3_Node_Client extends TeamSpeak3_Node_Abstract
|
||||
*/
|
||||
public function avatarDownload()
|
||||
{
|
||||
if($this["client_flag_avatar"] == 0) 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"]);
|
||||
|
@ -501,7 +501,9 @@ class TeamSpeak3_Node_Server extends TeamSpeak3_Node_Abstract
|
||||
*/
|
||||
public function channelFileInfo($cid, $cpw = "", $name = "/")
|
||||
{
|
||||
return array_pop($this->execute("ftgetfileinfo", array("cid" => $cid, "cpw" => $cpw, "name" => $name))->toArray());
|
||||
$info = $this->execute("ftgetfileinfo", array("cid" => $cid, "cpw" => $cpw, "name" => $name))->toArray();
|
||||
|
||||
return array_pop($info);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2268,8 +2270,6 @@ class TeamSpeak3_Node_Server extends TeamSpeak3_Node_Abstract
|
||||
public function delete()
|
||||
{
|
||||
$this->getParent()->serverDelete($this->getId());
|
||||
|
||||
unset($this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -74,8 +74,6 @@ class TeamSpeak3_Node_Servergroup extends TeamSpeak3_Node_Abstract
|
||||
public function delete($force = FALSE)
|
||||
{
|
||||
$this->getParent()->serverGroupDelete($this->getId(), $force);
|
||||
|
||||
unset($this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user