Fix debug file

This commit is contained in:
Laurent Destailleur 2019-09-23 19:21:18 +02:00
parent 1e65a478a8
commit 4a0305cdf8

View File

@ -71,6 +71,7 @@ if ($user->societe_id > 0)
} }
$object=new Facture($db); $object=new Facture($db);
$stripe=new Stripe($db);
// Load object // Load object
if ($facid > 0) if ($facid > 0)
@ -78,9 +79,9 @@ if ($facid > 0)
$ret=$object->fetch($facid); $ret=$object->fetch($facid);
} }
if (! empty($conf->stripe->enabled)) if (empty($conf->stripe->enabled))
{ {
access_forbidden(); accessforbidden();
} }
if (empty($conf->global->STRIPE_LIVE) || GETPOST('forcesandbox', 'alpha')) if (empty($conf->global->STRIPE_LIVE) || GETPOST('forcesandbox', 'alpha'))
@ -1082,7 +1083,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
if (! GETPOST('action')) if (! GETPOST('action'))
{ {
if ($page == -1) $page = 0 ; if ($page == -1 || empty($page)) $page = 0 ;
$limit = GETPOST('limit', 'int')?GETPOST('limit', 'int'):$conf->liste_limit; $limit = GETPOST('limit', 'int')?GETPOST('limit', 'int'):$conf->liste_limit;
$offset = $limit * $page ; $offset = $limit * $page ;