com web/bugs: Quiet some notices: www/bug.php

From: Date: Sat, 16 Jun 2018 22:11:15 +0000
Subject: com web/bugs: Quiet some notices: www/bug.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-27055@lists.php.net to get a copy of this message
Commit: c14bb87b01ee504a27531aee4bb27fb37b301032 Author: Rasmus Lerdorf <rasmus@lerdorf.com> Sat, 16 Jun 2018 15:11:15 -0700 Parents: b902b49625e2c99fa61e693cd5b0ee785dbe38fe Branches: master Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=c14bb87b01ee504a27531aee4bb27fb37b301032 Log: Quiet some notices Changed paths: M www/bug.php Diff: diff --git a/www/bug.php b/www/bug.php index e1d69ee..bcddf97 100644 --- a/www/bug.php +++ b/www/bug.php @@ -4,10 +4,11 @@ // Obtain common includes require_once '../include/prepend.php'; -// Start session +// Start session session_start(); define('SPAM_REJECT_MESSAGE', 'Your comment looks like SPAM by its content. Please consider rewording.'); +$email = null; // Handle preview if (isset($_REQUEST['id']) && $_REQUEST['id'] == 'preview') { @@ -17,7 +18,7 @@ if (isset($_REQUEST['id']) && $_REQUEST['id'] == 'preview') { $bug['modified'] = null; $bug['votes'] = 0; $bug['assign'] = ''; - + if (!$bug) { redirect('index.php'); }

« previous php.webmaster (#27055) next »