From dba94bfe2ca255b2e69b47b7beecc161e14178a8 Mon Sep 17 00:00:00 2001 From: Zhuk Viatcheslav Date: Fri, 20 Nov 2020 13:02:28 +0300 Subject: [PATCH] s --- app/routes/anpdf.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/routes/anpdf.php b/app/routes/anpdf.php index a6b3687..a9b003f 100644 --- a/app/routes/anpdf.php +++ b/app/routes/anpdf.php @@ -324,13 +324,15 @@ function readtext_kuri($hash, $page = 1, $promo = 'full'){ $full_ver_url = SITE."read/$hash/$page/$promo/pdf"; $content = apipage_kuri($price['price_id'], $page); + foreach ($content as $news) { $author_id = $news['author_id']; } + $authorname = db_get("SELECT `authorname` FROM `authors` WHERE `author_id` = $author_id LIMIT 1"); - //echo $authorname['authorname']; - //print_r($content); + $content['authorname'] = $authorname['authorname']; + print_r($content); if ($page > 1) {