diff --git a/htdocs/cron/admin/cron.php b/htdocs/cron/admin/cron.php index d2b0e2e3668..ff867c5a6dd 100644 --- a/htdocs/cron/admin/cron.php +++ b/htdocs/cron/admin/cron.php @@ -104,13 +104,13 @@ if (getDolGlobalInt('CRON_DISABLE_KEY_CHANGE') > 0) { $disabled = ' disabled="disabled"'; } print ''; -if (getDolGlobalString('CRON_DISABLE_KEY_CHANGE') != 1) { +if (getDolGlobalInt('CRON_DISABLE_KEY_CHANGE') != 1) { print ''; - if (getDolGlobalString('CRON_DISABLE_KEY_CHANGE') == 0) { + if (getDolGlobalInt('CRON_DISABLE_KEY_CHANGE') == 0) { if (!empty($conf->use_javascript_ajax)) { print ' '.img_picto($langs->trans('Generate'), 'refresh', 'id="generate_token" class="linkobject"'); } - } elseif (getDolGlobalString('CRON_DISABLE_KEY_CHANGE') == -1) { + } elseif (getDolGlobalInt('CRON_DISABLE_KEY_CHANGE') == -1) { $langs->load("errors"); print ' '.img_picto($langs->trans("WarningChangingThisMayBreakStopTaskScheduler"), 'info'); } @@ -126,7 +126,7 @@ print ''; print dol_get_fiche_end(); -if (!getDolGlobalString('CRON_DISABLE_KEY_CHANGE')) { +if (!getDolGlobalInt('CRON_DISABLE_KEY_CHANGE')) { print $form->buttonsSaveCancel("Save", ''); }