cvs: pearweb /public_html/bugs search.php
| From: | Daniel Convissor | Date: | Wed, 30 Jun 2004 14:13:20 +0000 |
| Subject: | cvs: pearweb /public_html/bugs search.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-21314@lists.php.net to get a copy of this message | ||
danielc Wed Jun 30 10:13:20 2004 EDT
Modified files:
/pearweb/public_html/bugs search.php
Log:
* Remove Helgi's debugging step.
* Use cleaner procedure for getting single value from $pseudo.
http://cvs.php.net/diff.php/pearweb/public_html/bugs/search.php?r1=1.48&r2=1.49&ty=u
Index: pearweb/public_html/bugs/search.php
diff -u pearweb/public_html/bugs/search.php:1.48 pearweb/public_html/bugs/search.php:1.49
--- pearweb/public_html/bugs/search.php:1.48 Wed Jun 30 09:41:02 2004
+++ pearweb/public_html/bugs/search.php Wed Jun 30 10:13:20 2004
@@ -15,7 +15,7 @@
* @package Bugs
* @copyright Copyright (c) 1997-2004 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: search.php,v 1.48 2004/06/30 13:41:02 dufuz Exp $
+ * @version $Id: search.php,v 1.49 2004/06/30 14:13:20 danielc Exp $
*/
/**
@@ -238,14 +238,12 @@
. escapeSQL($site) . "'";
if ($pseudo = array_intersect($pseudo_pkgs, $_GET['package_name'])) {
- print_r($pseudo);
$where_clause .= " OR bugdb.package_name";
if (count($pseudo) > 1) {
$where_clause .= " IN ('"
. join("', '", escapeSQL($pseudo)) .
"')";
} else {
- $search_pseudo = reset($pseudo);
- $where_clause .= " = '" . escapeSQL($search_pseudo) .
"'";
+ $where_clause .= " = '" . implode('', escapeSQL($pseudo)) .
"'";
}
}