add valid link in library

This commit is contained in:
Andrey Kuvshinov
2020-05-13 00:01:25 +03:00
parent 426dbaba86
commit e3d527f68e
2 changed files with 3 additions and 5 deletions

View File

@@ -217,7 +217,7 @@ function clients_arch($page = 1){
$books = db_get($pricesql); $books = db_get($pricesql);
$result['books'] = clientbooks($books, $clienthash); $result['books'] = clientbooks($books);
$result['subscript'] = true; $result['subscript'] = true;
$result['count'] = $count['count']; $result['count'] = $count['count'];
@@ -226,7 +226,7 @@ function clients_arch($page = 1){
} }
function clientbooks($books, $clienthash){ function clientbooks($books){
if (!is_array($books)) if (!is_array($books))
@@ -235,7 +235,7 @@ function clientbooks($books, $clienthash){
foreach($books as $book){ foreach($books as $book){
$book['pic'] = IMGSRV."price/180x280/{$book['price_id']}.{$book['priceimg']}"; $book['pic'] = IMGSRV."price/180x280/{$book['price_id']}.{$book['priceimg']}";
$book['link'] = 'read/'.$clienthash; $book['link'] = 'read/'.$book['pricehash'];
$result[] = $book; $result[] = $book;
} }

View File

@@ -90,8 +90,6 @@ function mybooks_kuri($page = 1){
exit; exit;
} }
$limit = 25; $limit = 25;
$client = api_client_kuri($login['data']['clienthash']); $client = api_client_kuri($login['data']['clienthash']);
$baseurl = SITE."mybooks/"; $baseurl = SITE."mybooks/";