svn: /web/php-bugs/trunk/ include/functions.php www/bug.php www/rss/search.php

From: Date: Thu, 30 Jun 2011 13:50:16 +0000
Subject: svn: /web/php-bugs/trunk/ include/functions.php www/bug.php www/rss/search.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-11400@lists.php.net to get a copy of this message
felipe Thu, 30 Jun 2011 13:50:16 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=312692 Log: - Fix warnings Changed paths: U web/php-bugs/trunk/include/functions.php U web/php-bugs/trunk/www/bug.php U web/php-bugs/trunk/www/rss/search.php Modified: web/php-bugs/trunk/include/functions.php =================================================================== --- web/php-bugs/trunk/include/functions.php 2011-06-30 13:48:07 UTC (rev 312691) +++ web/php-bugs/trunk/include/functions.php 2011-06-30 13:50:16 UTC (rev 312692) @@ -1261,7 +1261,7 @@ */ function get_package_mail($package_name, $bug_id = false, $bug_type = 'Bug') { - global $dbh, $bugEmail, $docBugEmail, $secBugEmail, $security_developers; + global $dbh, $bugEmail, $docBugEmail, $secBugEmail; $to = array(); @@ -1306,11 +1306,6 @@ } $bcc = $dbh->prepare("SELECT email FROM bugdb_subscribe WHERE bug_id=?")->execute(array($bug_id))->fetchCol(); - // Add the security distro people - if ($bug_type == 'Security') { - $bcc = array_merge((array) $bcc, array_map(create_function('$x', 'return $x."@php.net";'), $security_developers)); - } - $bcc = array_diff($bcc, $to); $bcc = array_unique($bcc); return array(implode(', ', $to), $bugEmail, implode(', ', $bcc)); } else { Modified: web/php-bugs/trunk/www/bug.php =================================================================== --- web/php-bugs/trunk/www/bug.php 2011-06-30 13:48:07 UTC (rev 312691) +++ web/php-bugs/trunk/www/bug.php 2011-06-30 13:50:16 UTC (rev 312692) @@ -349,7 +349,7 @@ } } elseif (isset($_POST['in']) && isset($_POST['preview']) && $edit == 2) { $ncomment = trim($_POST['ncomment']); - $from = $_POST['in']['commentemail']; + $from = isset($_POST['in']['commentemail']) ? $_POST['in']['commentemail'] : ''; // primitive spam detection if (is_spam($ncomment)) { Modified: web/php-bugs/trunk/www/rss/search.php =================================================================== --- web/php-bugs/trunk/www/rss/search.php 2011-06-30 13:48:07 UTC (rev 312691) +++ web/php-bugs/trunk/www/rss/search.php 2011-06-30 13:50:16 UTC (rev 312692) @@ -52,9 +52,8 @@ <rdf:Seq> '; +$items = ''; if ($total_rows > 0) { - $items = ''; - foreach ($res->fetchAll(MDB2_FETCHMODE_ASSOC) as $row) { $desc = "{$row['package_name']} ({$row['bug_type']})\nReported by "; if (preg_match('/@php.net$/i', $row['email'])) {

« previous php.webmaster (#11400) next »