cvs: pearweb /public_html/bugs search.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Wed, 26 Mar 2008 21:46:19 +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-7407@lists.php.net to get a copy of this message | ||
dufuz Wed Mar 26 21:46:19 2008 UTC
Modified files:
/pearweb/public_html/bugs search.php
Log:
We always need the packages table in the search query, the fact it always ran was because of
!empty($site) which was always set anyway
http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/search.php?r1=1.102&r2=1.103&diff_format=u
Index: pearweb/public_html/bugs/search.php
diff -u pearweb/public_html/bugs/search.php:1.102 pearweb/public_html/bugs/search.php:1.103
--- pearweb/public_html/bugs/search.php:1.102 Wed Mar 26 21:22:10 2008
+++ pearweb/public_html/bugs/search.php Wed Mar 26 21:46:19 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.102 2008/03/26 21:22:10 dufuz Exp $
+ * @version $Id: search.php,v 1.103 2008/03/26 21:46:19 dufuz Exp $
*/
// Obtain common includes
@@ -74,11 +74,8 @@
if (isset($_GET['cmd']) && $_GET['cmd'] == 'display') {
$query = 'SELECT SQL_CALC_FOUND_ROWS bugdb.*, ' .
- ' TO_DAYS(NOW())-TO_DAYS(bugdb.ts2) AS unchanged FROM bugdb';
-
- if ($maintain != '' || $handle != '') {
- $query .= ' LEFT JOIN packages ON packages.name = bugdb.package_name';
- }
+ ' TO_DAYS(NOW())-TO_DAYS(bugdb.ts2) AS unchanged FROM bugdb' .
+ ' LEFT JOIN packages ON packages.name = bugdb.package_name';
if ($maintain != '' || $handle != '') {
$query .= ' LEFT JOIN maintains ON packages.id = maintains.package';