correct pages return
This commit is contained in:
@@ -216,6 +216,7 @@ function promo_kuri($hash, $page = 0, $promo = true){
|
|||||||
|
|
||||||
if ($price['pages'] == 0){
|
if ($price['pages'] == 0){
|
||||||
$data['pages'] = pdfs_count($file);
|
$data['pages'] = pdfs_count($file);
|
||||||
|
$count = $data['pages'];
|
||||||
$pages_sql = "
|
$pages_sql = "
|
||||||
UPDATE
|
UPDATE
|
||||||
price
|
price
|
||||||
@@ -225,12 +226,15 @@ function promo_kuri($hash, $page = 0, $promo = true){
|
|||||||
price_id = ${price['price_id']}
|
price_id = ${price['price_id']}
|
||||||
";
|
";
|
||||||
db_get($pages_sql, 'chitatel');
|
db_get($pages_sql, 'chitatel');
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
$count = $price['pages'];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$pdfile = $data['pdfpgurl'];
|
$pdfile = $data['pdfpgurl'];
|
||||||
$fullpdf = $data['pdfurl'];
|
$fullpdf = $data['pdfurl'];
|
||||||
$count = $data['pages'];
|
|
||||||
echo $count;
|
|
||||||
$pagenum = 1;
|
$pagenum = 1;
|
||||||
$newcurr = strtotime($price['BeginDate']);
|
$newcurr = strtotime($price['BeginDate']);
|
||||||
$category = $price['category_id'];
|
$category = $price['category_id'];
|
||||||
|
|||||||
Reference in New Issue
Block a user