From c6cc072dd63073f253de1a3ebd7eb2c124596a52 Mon Sep 17 00:00:00 2001 From: "Arun S. Sekher" Date: Sun, 25 Jun 2017 23:24:30 +0400 Subject: [PATCH] Fix printer friendly page (print.php) news author issue: #2300 --- print.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print.php b/print.php index 1e1ddf1a4..962967c55 100644 --- a/print.php +++ b/print.php @@ -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();