- PGSQL Fix: missing columns in GROUP BY (aggregator news -> sources was broken).
parent
195f672075
commit
e08bde4def
|
@ -956,7 +956,7 @@ function _aggregator_page_list($sql, $op, $header = '') {
|
|||
* Menu callback; displays all the feeds used by the aggregator.
|
||||
*/
|
||||
function aggregator_page_sources() {
|
||||
$result = db_query('SELECT f.fid, f.title, f.description, f.image, MAX(i.timestamp) AS last FROM {aggregator_feed} f LEFT JOIN {aggregator_item} i ON f.fid = i.fid GROUP BY f.fid');
|
||||
$result = db_query('SELECT f.fid, f.title, f.description, f.image, MAX(i.timestamp) AS last FROM {aggregator_feed} f LEFT JOIN {aggregator_item} i ON f.fid = i.fid GROUP BY f.fid, f.title, f.description, f.image');
|
||||
$output = "<div id=\"aggregator\">\n";
|
||||
while ($feed = db_fetch_object($result)) {
|
||||
$output .= '<h2>'. check_plain($feed->title) ."</h2>\n";
|
||||
|
|
|
@ -956,7 +956,7 @@ function _aggregator_page_list($sql, $op, $header = '') {
|
|||
* Menu callback; displays all the feeds used by the aggregator.
|
||||
*/
|
||||
function aggregator_page_sources() {
|
||||
$result = db_query('SELECT f.fid, f.title, f.description, f.image, MAX(i.timestamp) AS last FROM {aggregator_feed} f LEFT JOIN {aggregator_item} i ON f.fid = i.fid GROUP BY f.fid');
|
||||
$result = db_query('SELECT f.fid, f.title, f.description, f.image, MAX(i.timestamp) AS last FROM {aggregator_feed} f LEFT JOIN {aggregator_item} i ON f.fid = i.fid GROUP BY f.fid, f.title, f.description, f.image');
|
||||
$output = "<div id=\"aggregator\">\n";
|
||||
while ($feed = db_fetch_object($result)) {
|
||||
$output .= '<h2>'. check_plain($feed->title) ."</h2>\n";
|
||||
|
|
Loading…
Reference in New Issue