Fix empt and getDolGlobal

This commit is contained in:
Laurent Destailleur 2023-08-27 18:19:36 +02:00
parent 5d4f53046a
commit b66a18254d
2 changed files with 2 additions and 3 deletions

View file

@ -187,7 +187,6 @@ $form = new Form($db);
if ($object->id > 0) {
$title = $langs->trans("Agenda");
//if (!empty(getDolGlobalString('MAIN_HTML_TITLE')) && preg_match('/thirdpartynameonly/',getDolGlobalString('MAIN_HTML_TITLE')) && $object->name) $title=$object->name." - ".$title;
$help_url = 'EN:Module_Agenda_En|DE:Modul_Terminplanung';
llxHeader('', $title, $help_url);

View file

@ -1016,11 +1016,11 @@ class Calendar extends CommonObject
global $langs, $conf;
$langs->load("bookcal@bookcal");
if (empty(getDolGlobalString('BOOKCAL_MYOBJECT_ADDON'))) {
if (getDolGlobalString('BOOKCAL_MYOBJECT_ADDON')) {
$conf->global->BOOKCAL_MYOBJECT_ADDON = 'mod_calendar_standard';
}
if (!empty(getDolGlobalString('BOOKCAL_MYOBJECT_ADDON'))) {
if (getDolGlobalString('BOOKCAL_MYOBJECT_ADDON')) {
$mybool = false;
$file = getDolGlobalString('BOOKCAL_MYOBJECT_ADDON').".php";