cvs: pearweb /include/bugs pear-bugs-utils.php

From: Date: Wed, 26 Mar 2008 21:16:24 +0000
Subject: cvs: pearweb /include/bugs pear-bugs-utils.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7399@lists.php.net to get a copy of this message
dufuz Wed Mar 26 21:16:24 2008 UTC Modified files: /pearweb/include/bugs pear-bugs-utils.php Log: A function still using dead $site variable improved a query http://cvs.php.net/viewvc.cgi/pearweb/include/bugs/pear-bugs-utils.php?r1=1.1&r2=1.2&diff_format=u Index: pearweb/include/bugs/pear-bugs-utils.php diff -u pearweb/include/bugs/pear-bugs-utils.php:1.1 pearweb/include/bugs/pear-bugs-utils.php:1.2 --- pearweb/include/bugs/pear-bugs-utils.php:1.1 Tue Mar 25 02:14:14 2008 +++ pearweb/include/bugs/pear-bugs-utils.php Wed Mar 26 21:16:24 2008 @@ -10,7 +10,7 @@ */ public function getPackageMail($package_name, $bug_id = false) { - global $site, $bugEmail, $dbh; + global $bugEmail, $dbh; switch ($package_name) { case 'Bug System': case 'PEPr': @@ -39,7 +39,7 @@ $assigned = $dbh->getOne('SELECT assign FROM bugdb WHERE id = ' . $bug_id); if ($assigned) { - $assigned = $dbh->getOne('SELECT email FROM users WHERE handle = "' . $assigned . '"'); + $assigned = $dbh->getOne('SELECT email FROM users WHERE handle = ?', array($assigned)); if ($assigned && !in_array($assigned, $to)) { // assigned is not a maintainer $to[] = $assigned;

« previous php.pear.core (#7399) next »