[git] web/bugs.git branch master updated. 90b9715
| From: | felipe@php.net | Date: | Fri, 27 Jan 2012 21:12:13 +0000 |
| Subject: | [git] web/bugs.git branch master updated. 90b9715 | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-12984@lists.php.net to get a copy of this message | ||
The branch, master on web/bugs.git has been updated
via 90b971540a08715b4a59a9437edae2355ec0865b (commit)
from d2991977d97b30f0489f727868291b4b3bf60514 (commit)
http://git.php.net/?p=web/bugs.git;a=log;h=90b971540a08715b4a59a9437edae2355ec0865b;hp=d2991977d97b30f0489f727868291b4b3bf60514
Summary of changes:
www/bug.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
-- Log ----------------------------------------
commit 90b971540a08715b4a59a9437edae2355ec0865b
Author: Felipe Pena <felipensp@gmail.com>
Date: Fri Jan 27 19:06:48 2012 -0200
- Fix warning
diff --git a/www/bug.php b/www/bug.php
index adb3437..d3c8b03 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -276,7 +276,9 @@ if (isset($_POST['ncomment']) &&
!isset($_POST['preview']) && $edit == 3) {
}
// check that they aren't being bad and setting a status they aren't allowed to (oh, the
horrors.)
- if ($_POST['in']['status'] != $bug['status'] &&
$state_types[$_POST['in']['status']] != 2) {
+ if (isset($_POST['in']['status'])
+ && isset($state_types[$_POST['in']['status']])
+ && $_POST['in']['status'] != $bug['status'] &&
$state_types[$_POST['in']['status']] != 2) {
$errors[] = 'You aren\'t allowed to change a bug to that state.';
}
Thank you for your contribution.