com web/bugs: Fix #76961: bugs.php.net/vote.php throws a Server Error: www/vote.php
| From: | Peter Kokot | Date: | Tue, 23 Oct 2018 03:39:49 +0000 |
| Subject: | com web/bugs: Fix #76961: bugs.php.net/vote.php throws a Server Error: www/vote.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-27375@lists.php.net to get a copy of this message | ||
Commit: 3b0b87e230f278e0db9b04fbbff05a8a7dd55cc6
Author: Peter Kokot <peterkokot@gmail.com> Tue, 23 Oct 2018 05:39:49 +0200
Parents: 8fe6914127b3b3da776a67c25db29ae8e0a5b16c
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=3b0b87e230f278e0db9b04fbbff05a8a7dd55cc6
Log:
Fix #76961: bugs.php.net/vote.php throws a Server Error
Bugs:
https://bugs.php.net/76961
Changed paths:
M www/vote.php
Diff:
diff --git a/www/vote.php b/www/vote.php
index 358ee99..0c4b311 100644
--- a/www/vote.php
+++ b/www/vote.php
@@ -87,10 +87,10 @@ if (empty($bug_check)) {
WHERE bug = ? AND ip = ?")
->execute(array(
$score,
- ($reproduced == 1 ? "1," : "0,"),
- ($reproduced != 2 ? "1," : "0,"),
- ($reproduced ? "$sameos," : "NULL,"),
- ($reproduced ? "$samever" : "NULL"),
+ ($reproduced == 1 ? "1" : "0"),
+ ($reproduced != 2 ? "1" : "0"),
+ ($reproduced ? "$sameos" : null),
+ ($reproduced ? "$samever" : null),
$id,
$ip
));