Fixed field type

This commit is contained in:
Shoghi Cervantes 2013-06-12 19:40:09 +02:00
parent 471de2d1c5
commit a7149ad9ef
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ class PocketMinecraftServer{
$d .= Utils::writeShort(strlen($data["url"])).$data["url"].(isset($data["timeout"]) ? Utils::writeShort($data["timeout"]) : Utils::writeShort(10));
$d .= Utils::writeShort(count($data["data"]));
foreach($data["data"] as $key => $value){
$d .= Utils::writeInt(strlen($key)).$key . Utils::writeInt(strlen($value)).$value;
$d .= Utils::writeShort(strlen($key)).$key . Utils::writeInt(strlen($value)).$value;
}
break;
default:

View File

@ -74,7 +74,7 @@ class AsyncMultipleQueue extends Thread{
$d = array();
for($c = 0; $c < $cnt; ++$c){
$key = $this->get(Utils::readShort($this->get(2), false));
$d[$key] = $this->get(Utils::readShort($this->get(2), false));
$d[$key] = $this->get(Utils::readInt($this->get(2), false));
}
$res = (string) Utils::curl_post($url, $d, $timeout);
$this->lock();