Ok actual fix
This commit is contained in:
@@ -60,7 +60,7 @@ foreach ($rows as $row) {
|
||||
if (getClientVersion() == "1.6") {
|
||||
echo encrypt(json_encode($mapped));
|
||||
} else {
|
||||
echo encrypt(json_encode(["messages" => array_reverse($mapped), "customIcons" => $icons]));
|
||||
echo encrypt(json_encode(["messages" => array_reverse($mapped), "customIcons" => $icons == [] ? new stdClass() : $icons]));
|
||||
}
|
||||
|
||||
$conn->close();
|
||||
@@ -91,7 +91,7 @@ $limited = array_slice($mapped, 0, 500);
|
||||
if (getClientVersion() == "1.6" || (getClientVersion() == "1.6.1" && $request_type == "1")) {
|
||||
echo encrypt(json_encode($limited));
|
||||
} else {
|
||||
echo encrypt(json_encode(["entries" => $limited, "customIcons" => $icons]));
|
||||
echo encrypt(json_encode(["entries" => $limited, "customIcons" => $icons == [] ? new stdClass() : $icons]));
|
||||
}
|
||||
|
||||
$conn->close();
|
||||
Reference in New Issue
Block a user