diff --git a/src/danog/MadelineProto/Wrappers/Loop.php b/src/danog/MadelineProto/Wrappers/Loop.php index 2141e452d..9755d55e2 100644 --- a/src/danog/MadelineProto/Wrappers/Loop.php +++ b/src/danog/MadelineProto/Wrappers/Loop.php @@ -117,7 +117,8 @@ trait Loop $params = $_GET; $params['MadelineSelfRestart'] = Tools::random_int(); - list($url, $query) = explode($uri, '?', 2); + $url = explode($uri, '?', 2)[0] ?? ''; + $query = http_build_query($params); $uri = implode('?', [$url, $query]);