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