diff --git a/application/core/Libs/Maniaplanet/DedicatedServer/Xmlrpc/Client.php b/application/core/Libs/Maniaplanet/DedicatedServer/Xmlrpc/Client.php index 382af63a..ba43c95f 100644 --- a/application/core/Libs/Maniaplanet/DedicatedServer/Xmlrpc/Client.php +++ b/application/core/Libs/Maniaplanet/DedicatedServer/Xmlrpc/Client.php @@ -220,6 +220,11 @@ class Client throw new FatalException('deb1 transport error - connection interrupted!' . $contents, FatalException::INTERRUPTED); } $contents .= $newContent; + + if(strlen($contents) < 8){ + usleep(10); + var_dump("deb1 test new"); + } } $array_result = unpack('Vsize/Vhandle', $contents); diff --git a/application/core/Maps/MapList.php b/application/core/Maps/MapList.php index 8f14a602..adb5d2bd 100644 --- a/application/core/Maps/MapList.php +++ b/application/core/Maps/MapList.php @@ -268,7 +268,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { // Display Maps $array = array($id => $x + 5, $mxId => $x + 10, Formatter::stripDirtyCodes($map->name) => $x + 20, $map->authorNick => $x + 68); $labels = $this->maniaControl->manialinkManager->labelLine($mapFrame, $array); - if ($labels[3]) { + if (isset($labels[3])) { $script->addTooltip($labels[3], $descriptionLabel, array(Script::OPTION_TOOLTIP_TEXT => '$<' . $map->name . '$> made by $<' . $map->authorLogin . '$>')); }