* FIX TakePOS : Undefined variable $servicestatus in pay.php on lines 126, 368 and 392 when stripe is not enabled #31724

TakePOS : Undefined variable $servicestatus in pay.php on lines 126, 368 and 392 when stripe is not enabled #31724

* nettoyage ligne 89 whitespace
This commit is contained in:
Delthair 2024-11-15 23:59:30 +01:00 committed by GitHub
parent 4b9a5db62f
commit c2a7c4bbc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,10 +82,11 @@ top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss);
<?php
$usestripeterminals = 0;
$servicestatus = 0;
if (isModEnabled('stripe')) {
$service = 'StripeTest';
$servicestatus = 0;
if (getDolGlobalString('STRIPE_LIVE') && !GETPOST('forcesandbox', 'alpha')) {
$service = 'StripeLive';
$servicestatus = 1;