Merged rss fix from 1.8 MDL-10960

This commit is contained in:
moodler
2007-08-23 06:14:26 +00:00
parent c24993cd3c
commit 3be1eb5238
+3 -2
View File
@@ -37,9 +37,10 @@
// 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)) {