diff --git a/app/api/apiclient.php b/app/api/apiclient.php index e48febd..f5df6b0 100644 --- a/app/api/apiclient.php +++ b/app/api/apiclient.php @@ -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; } diff --git a/app/routes/client.php b/app/routes/client.php index 68c7716..627aa97 100644 --- a/app/routes/client.php +++ b/app/routes/client.php @@ -89,8 +89,6 @@ function mybooks_kuri($page = 1){ header('Location: '.SITE.'login'); exit; } - - $limit = 25; $client = api_client_kuri($login['data']['clienthash']);