com web/php: Fixed bug on vote-note.php.: manual/vote-note.php
| From: | Sherif Ramadan | Date: | Wed, 12 Dec 2012 18:36:55 +0000 |
| Subject: | com web/php: Fixed bug on vote-note.php.: manual/vote-note.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-15064@lists.php.net to get a copy of this message | ||
Commit: 3d109b91788e8ad7252df4ea6716111191068eee
Author: Sherif Ramadan <googleguy@php.net> Wed, 12 Dec 2012 13:36:55 -0500
Parents: 8fb7c3de1990202a6d677882a44ac247d3b32f8d
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=3d109b91788e8ad7252df4ea6716111191068eee
Log:
Fixed bug on vote-note.php.
Changed paths:
M manual/vote-note.php
Diff:
diff --git a/manual/vote-note.php b/manual/vote-note.php
index cb0a82e..bb5af7a 100644
--- a/manual/vote-note.php
+++ b/manual/vote-note.php
@@ -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 {