Fix php-stan

This commit is contained in:
Alexandre SPANGARO 2025-01-10 14:02:13 +01:00
parent ad249cec23
commit 148deff4ee
2 changed files with 2 additions and 1 deletions

View File

@ -232,7 +232,7 @@ $urlko = $urlwithroot.'/public/payment/paymentko.php?';
if ($ws && !defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { // So defined('USEEXTERNALSERVER') should be set but is not always
include_once DOL_DOCUMENT_ROOT.'/website/class/website.class.php';
$tmpwebsite = new WebSite($db);
$tmpwebsite = new Website($db);
$tmpwebsite->fetch(0, $ws);
$urlok = $tmpwebsite->virtualhost.'/public/payment/paymentok.php?';
$urlko = $tmpwebsite->virtualhost.'/public/payment/paymentko.php?';

View File

@ -174,6 +174,7 @@ $error = 0;
// Check if we have redirtodomain to do.
$ws_virtuelhost = null;
$doactionsthenredirect = 0;
if ($ws) {
$doactionsthenredirect = 1;
include_once DOL_DOCUMENT_ROOT.'/website/class/website.class.php';