Skip to content

Commit

Permalink
Merged rss fix from 1.8 MDL-10960
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Aug 23, 2007
1 parent c24993c commit 3be1eb5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mod/data/rsslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ function data_rss_feeds() {
// Get the data_records out.
$approved = ($data->approval) ? ' AND dr.approved = 1 ' : ' ';

$sql = 'SELECT dr.* ' .
"FROM {$CFG->prefix}data_records dr " .
$sql = 'SELECT dr.*, u.firstname, u.lastname ' .
"FROM {$CFG->prefix}data_records dr, {$CFG->prefix}user u " .
"WHERE dr.dataid = {$data->id} " .$approved.
' AND dr.userid = u.id '.
'ORDER BY dr.timecreated DESC';

if (!$records = get_records_sql($sql, 0, $data->rssarticles)) {
Expand Down

0 comments on commit 3be1eb5

Please sign in to comment.