mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Fix printer friendly page (print.php) news author issue: #2300
This commit is contained in:
parent
4f3487c81c
commit
c6cc072dd6
@ -71,7 +71,7 @@ else
|
||||
{
|
||||
//$con = new convert;
|
||||
|
||||
$query = "SELECT n.*,c.* FROM `#news` AS n LEFT JOIN `#news_category` AS c ON n.news_category = c.category_id WHERE n.news_id=".intval($parms);
|
||||
$query = "SELECT n.*, c.*, u.user_id, u.user_name FROM `#news` AS n LEFT JOIN `#news_category` AS c ON n.news_category = c.category_id LEFT JOIN `#user` AS u ON n.news_author = u.user_id WHERE n.news_id = " . intval($parms);
|
||||
|
||||
//$sql->db_Select("news", "*", "news_id='{$parms}'");
|
||||
$sql = e107::getDb();
|
||||
|
Loading…
x
Reference in New Issue
Block a user