Commit:    3b0b87e230f278e0db9b04fbbff05a8a7dd55cc6
Author:    Peter Kokot <peterko...@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
                ));


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to