mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Fixed bug on vote-note.php.
This commit is contained in:
@@ -43,7 +43,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
if (json_last_error() == JSON_ERROR_NONE && isset($r->status) && $r->status && isset($r->votes)) {
|
||||
$response["success"] = true;
|
||||
$response["update"] = (int)$r->votes;
|
||||
} elseif (json_last_error() == JSON_ERROR_NONE && isset($r-status) && isset($r->message) && $r->status == false) {
|
||||
} elseif (json_last_error() == JSON_ERROR_NONE && isset($r->status) && isset($r->message) && $r->status == false) {
|
||||
$response["success"] = false;
|
||||
$response["msg"] = $r->message;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user