Merge pull request #21328 from defrance/patch-211

expedition setting php V8 warning
This commit is contained in:
Laurent Destailleur 2022-06-23 11:41:17 +02:00 committed by GitHub
commit d87f8d874b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ foreach ($dirmodels as $reldir) {
if ($conf->global->EXPEDITION_ADDON_NUMBER == "$file") {
print img_picto($langs->trans("Activated"), 'switch_on');
} else {
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setmodel&token='.newToken().'&value='.urlencode($file).'&scan_dir='.urlencode($module->scandir).'&label='.urlencode($module->name).'">';
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setmodel&token='.newToken().'&value='.urlencode($file).'&label='.urlencode($module->name).'">';
print img_picto($langs->trans("Disabled"), 'switch_off');
print '</a>';
}

View File

@ -127,7 +127,7 @@ class mod_expedition_ribera extends ModelNumRefExpedition
$mask = getDolGlobalString('EXPEDITION_RIBERA_MASK');
if (!$mask) {
if (empty($mask)) {
$this->error = 'NotConfigured';
return 0;
}