Merge pull request #21328 from defrance/patch-211
expedition setting php V8 warning
This commit is contained in:
commit
d87f8d874b
@ -231,7 +231,7 @@ foreach ($dirmodels as $reldir) {
|
|||||||
if ($conf->global->EXPEDITION_ADDON_NUMBER == "$file") {
|
if ($conf->global->EXPEDITION_ADDON_NUMBER == "$file") {
|
||||||
print img_picto($langs->trans("Activated"), 'switch_on');
|
print img_picto($langs->trans("Activated"), 'switch_on');
|
||||||
} else {
|
} 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 img_picto($langs->trans("Disabled"), 'switch_off');
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -127,7 +127,7 @@ class mod_expedition_ribera extends ModelNumRefExpedition
|
|||||||
|
|
||||||
$mask = getDolGlobalString('EXPEDITION_RIBERA_MASK');
|
$mask = getDolGlobalString('EXPEDITION_RIBERA_MASK');
|
||||||
|
|
||||||
if (!$mask) {
|
if (empty($mask)) {
|
||||||
$this->error = 'NotConfigured';
|
$this->error = 'NotConfigured';
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user