From 52017454a1aba8dcf3f3f3dcbbe1f73caf806f48 Mon Sep 17 00:00:00 2001 From: Braker Date: Tue, 16 Feb 2021 20:31:17 +0100 Subject: [PATCH] Update Request.php "0" is treated as false, leading to unwanted problems --- libraries/Maniaplanet/DedicatedServer/Xmlrpc/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Maniaplanet/DedicatedServer/Xmlrpc/Request.php b/libraries/Maniaplanet/DedicatedServer/Xmlrpc/Request.php index 435d8f2..560175a 100644 --- a/libraries/Maniaplanet/DedicatedServer/Xmlrpc/Request.php +++ b/libraries/Maniaplanet/DedicatedServer/Xmlrpc/Request.php @@ -90,7 +90,7 @@ private static function encodeValue($v, $escape = true) return '' . $v . ''; case 'string': case 'NULL': - if (!$v) { + if (!$v && $v != "0") { return ''; } return '' . self::escape($v, $escape) . '';