From c3885778cdeee0708449f7e1ce19dadbfb563577 Mon Sep 17 00:00:00 2001 From: Zhuk Viatcheslav Date: Fri, 20 Nov 2020 12:57:04 +0300 Subject: [PATCH] s --- app/routes/anpdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/anpdf.php b/app/routes/anpdf.php index c0ebb44..53a11a2 100644 --- a/app/routes/anpdf.php +++ b/app/routes/anpdf.php @@ -327,7 +327,7 @@ function readtext_kuri($hash, $page = 1, $promo = 'full'){ foreach ($content as $news) { $author_id = $news['author_id']; } - $authorname = db_get("SELECT `authorname` FROM `authors` WHERE `author_id` = $author_id"); + $authorname = db_get("SELECT `authorname` FROM `authors` WHERE `author_id` = $author_id LIMIT 1"); echo $authorname; //print_r($content);