fixed error pagination datamatrix pandora_enterprise#8619
This commit is contained in:
parent
2d638a61cf
commit
eecda4560a
|
@ -1461,7 +1461,10 @@ if (check_login()) {
|
||||||
|
|
||||||
$order = get_datatable_order(true);
|
$order = get_datatable_order(true);
|
||||||
|
|
||||||
|
// Total time per page.
|
||||||
$time_all_box = ($length * $slice);
|
$time_all_box = ($length * $slice);
|
||||||
|
|
||||||
|
// Total number of boxes.
|
||||||
$total_box = ceil($period / $slice);
|
$total_box = ceil($period / $slice);
|
||||||
|
|
||||||
if ($start > 0) {
|
if ($start > 0) {
|
||||||
|
@ -1471,8 +1474,16 @@ if (check_login()) {
|
||||||
// Uncompress.
|
// Uncompress.
|
||||||
try {
|
try {
|
||||||
ob_start();
|
ob_start();
|
||||||
$date = (get_system_time() - ($time_all_box * $start));
|
$dateNow = get_system_time();
|
||||||
$datelimit = ($date - $time_all_box);
|
$final = ($dateNow - $period);
|
||||||
|
$date = ($dateNow - ($time_all_box * $start));
|
||||||
|
|
||||||
|
if (($date - $time_all_box) > $final) {
|
||||||
|
$datelimit = ($date - $time_all_box);
|
||||||
|
} else {
|
||||||
|
$datelimit = $final;
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($modules as $key => $value) {
|
foreach ($modules as $key => $value) {
|
||||||
if (is_metaconsole() === true) {
|
if (is_metaconsole() === true) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue