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