Fix warning
This commit is contained in:
parent
7505e2a1ab
commit
41bb01339a
@ -58,7 +58,7 @@ if ($action == 'set_default') {
|
|||||||
} elseif ($action == 'del_default') {
|
} elseif ($action == 'del_default') {
|
||||||
$ret = delDocumentModel($value, $type);
|
$ret = delDocumentModel($value, $type);
|
||||||
if ($ret > 0) {
|
if ($ret > 0) {
|
||||||
if ($conf->global->USERGROUP_ADDON_PDF_ODT == "$value") {
|
if (getDolGlobalString('USERGROUP_ADDON_PDF_ODT') == "$value") {
|
||||||
dolibarr_del_const($db, 'USERGROUP_ADDON_PDF_ODT', $conf->entity);
|
dolibarr_del_const($db, 'USERGROUP_ADDON_PDF_ODT', $conf->entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -202,7 +202,7 @@ foreach ($dirmodels as $reldir) {
|
|||||||
|
|
||||||
// Defaut
|
// Defaut
|
||||||
print '<td class="center">';
|
print '<td class="center">';
|
||||||
if ($conf->global->USERGROUP_ADDON_PDF == $name) {
|
if (getDolGlobalString('USERGROUP_ADDON_PDF') == $name) {
|
||||||
print img_picto($langs->trans("Default"), 'on');
|
print img_picto($langs->trans("Default"), 'on');
|
||||||
} else {
|
} else {
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&token='.newToken().'&value='.urlencode($name).'&scandir='.urlencode($module->scandir).'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&token='.newToken().'&value='.urlencode($name).'&scandir='.urlencode($module->scandir).'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'</a>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user