svn: /web/php-bugs/trunk/include/ functions.php query.php

From: Date: Thu, 30 Jun 2011 02:38:22 +0000
Subject: svn: /web/php-bugs/trunk/include/ functions.php query.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-11384@lists.php.net to get a copy of this message
felipe Thu, 30 Jun 2011 02:38:22 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=312656 Log: - Fix warning Changed paths: U web/php-bugs/trunk/include/functions.php U web/php-bugs/trunk/include/query.php Modified: web/php-bugs/trunk/include/functions.php =================================================================== --- web/php-bugs/trunk/include/functions.php 2011-06-30 02:30:06 UTC (rev 312655) +++ web/php-bugs/trunk/include/functions.php 2011-06-30 02:38:22 UTC (rev 312656) @@ -353,7 +353,7 @@ function field($n) { return oneof(isset($_POST['in']) ? - htmlspecialchars($_POST['in'][$n]) : null, + htmlspecialchars(isset($_POST['in'][$n]) ? $_POST['in'][$n] : '') : null, htmlspecialchars($GLOBALS['bug'][$n])); } Modified: web/php-bugs/trunk/include/query.php =================================================================== --- web/php-bugs/trunk/include/query.php 2011-06-30 02:30:06 UTC (rev 312655) +++ web/php-bugs/trunk/include/query.php 2011-06-30 02:38:22 UTC (rev 312656) @@ -65,7 +65,7 @@ $where_clause = ' WHERE 1 = 1 '; - if ($user_flags & (BUGS_SECURITY_DEV | BUGS_TRUSTED_DEV)) { + if (isset($user_flags) && ($user_flags & (BUGS_SECURITY_DEV | BUGS_TRUSTED_DEV))) { if ($private != '') { $where_clause .= ' AND bugdb.private = "Y" '; }

« previous php.webmaster (#11384) next »