This commit is contained in:
Zhuk Viatcheslav
2020-11-20 13:02:28 +03:00
parent 90c8905e31
commit dba94bfe2c

View File

@@ -324,13 +324,15 @@ function readtext_kuri($hash, $page = 1, $promo = 'full'){
$full_ver_url = SITE."read/$hash/$page/$promo/pdf"; $full_ver_url = SITE."read/$hash/$page/$promo/pdf";
$content = apipage_kuri($price['price_id'], $page); $content = apipage_kuri($price['price_id'], $page);
foreach ($content as $news) { foreach ($content as $news) {
$author_id = $news['author_id']; $author_id = $news['author_id'];
} }
$authorname = db_get("SELECT `authorname` FROM `authors` WHERE `author_id` = $author_id LIMIT 1"); $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) { if ($page > 1) {