1
0
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:
Sherif Ramadan
2012-12-12 13:36:55 -05:00
parent 8fb7c3de19
commit 3d109b9178

View File

@@ -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 {