find mail in buys

This commit is contained in:
Andrey Kuvshinov
2020-05-29 21:29:27 +03:00
parent 621dea28bd
commit 2519ce2f01
3 changed files with 15 additions and 20 deletions

View File

@@ -80,6 +80,10 @@ function addcard($id, $date) {
}
function mybooks_kuri($category = 'gazeta', $filter = 'all', $page = 1){
$login = check_login_kuri();
@@ -104,7 +108,8 @@ function mybooks_kuri($category = 'gazeta', $filter = 'all', $page = 1){
return;
}
$items = clientbuys_kuri($client['client_id'], $page, $category_id, $client['clientgroup_id'], $filter);
$items = clientbuys_kuri($client['clientmail'], $page, $category_id, $client['clientgroup_id'], $filter);
$count = $items['count'];
if ($count > $limit){
@@ -136,21 +141,6 @@ function mybooks_kuri($category = 'gazeta', $filter = 'all', $page = 1){
function books_client_kuri($id){
$login = check_login_kuri();
if (!isset($login['client_id'])){
header('Location: '.SITE.'login');
exit;
}
}