cvs: pearweb /public_html/bugs search.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Wed, 26 Mar 2008 21:22:10 +0000 |
| Subject: | cvs: pearweb /public_html/bugs search.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-7401@lists.php.net to get a copy of this message | ||
dufuz Wed Mar 26 21:22:10 2008 UTC
Modified files:
/pearweb/public_html/bugs search.php
Log:
Switch to the site constant
http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/search.php?r1=1.101&r2=1.102&diff_format=u
Index: pearweb/public_html/bugs/search.php
diff -u pearweb/public_html/bugs/search.php:1.101 pearweb/public_html/bugs/search.php:1.102
--- pearweb/public_html/bugs/search.php:1.101 Tue Mar 25 02:31:54 2008
+++ pearweb/public_html/bugs/search.php Wed Mar 26 21:22:10 2008
@@ -15,7 +15,7 @@
* @package Bugs
* @copyright Copyright (c) 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: search.php,v 1.101 2008/03/25 02:31:54 dufuz Exp $
+ * @version $Id: search.php,v 1.102 2008/03/26 21:22:10 dufuz Exp $
*/
// Obtain common includes
@@ -76,7 +76,7 @@
$query = 'SELECT SQL_CALC_FOUND_ROWS bugdb.*, ' .
' TO_DAYS(NOW())-TO_DAYS(bugdb.ts2) AS unchanged FROM bugdb';
- if (!empty($site) || $maintain != '' || $handle != '') {
+ if ($maintain != '' || $handle != '') {
$query .= ' LEFT JOIN packages ON packages.name = bugdb.package_name';
}
@@ -274,7 +274,7 @@
}
$where_clause .= ' AND (packages.package_type = '
- . $dbh->quoteSmart($site);
+ . $dbh->quoteSmart(SITE);
if ($pseudo = array_intersect($pseudo_pkgs, $package_name)) {
$where_clause .= " OR bugdb.package_name";