cvs: pearweb /public_html/bugs/rss search.php

From: Date: Wed, 26 Mar 2008 21:46:16 +0000
Subject: cvs: pearweb /public_html/bugs/rss search.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7406@lists.php.net to get a copy of this message
dufuz Wed Mar 26 21:46:16 2008 UTC Modified files: /pearweb/public_html/bugs/rss 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/rss/search.php?r1=1.7&r2=1.8&diff_format=u Index: pearweb/public_html/bugs/rss/search.php diff -u pearweb/public_html/bugs/rss/search.php:1.7 pearweb/public_html/bugs/rss/search.php:1.8 --- pearweb/public_html/bugs/rss/search.php:1.7 Wed Mar 26 21:27:19 2008 +++ pearweb/public_html/bugs/rss/search.php Wed Mar 26 21:46:16 2008 @@ -42,10 +42,8 @@ $query = 'SELECT SQL_CALC_FOUND_ROWS'; $query .= ' bugdb.*, UNIX_TIMESTAMP(ts1) as ts1a, UNIX_TIMESTAMP(ts2) as ts2a, TO_DAYS(NOW())-TO_DAYS(bugdb.ts2) AS unchanged' - . ' FROM bugdb'; - -if (!empty($_GET['maintain']) || !empty($_GET['handle'])) { - $query .= ' LEFT JOIN packages ON packages.name = bugdb.package_name'; + . ' FROM bugdb' . + ' LEFT JOIN packages ON packages.name = bugdb.package_name'; } if (!empty($_GET['maintain']) || !empty($_GET['handle'])) {

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