1
0

fix d4ce253 missing authorid fetch

References #385
This commit is contained in:
Ian
2016-02-03 16:52:46 +01:00
parent d4ce2533f6
commit 7f7f452388

View File

@@ -67,7 +67,7 @@ $cjoin = ($serendipity['serendipityUserlevel'] == USERLEVEL_EDITOR) ? "
LEFT JOIN {$serendipity['dbPrefix']}authors a ON (e.authorid = a.authorid)
WHERE e.authorid = " . (int)$serendipity['authorid']
: '';
$cquery = "SELECT c.*, e.title
$cquery = "SELECT c.*, e.title, e.authorid
FROM {$serendipity['dbPrefix']}comments c
LEFT JOIN {$serendipity['dbPrefix']}entries e ON (e.id = c.entry_id)
" . $cjoin ."