From b66a18254d3ce5c475bbcd8e637acff3c60ff6a9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 27 Aug 2023 18:19:36 +0200 Subject: [PATCH] Fix empt and getDolGlobal --- htdocs/bookcal/calendar_agenda.php | 1 - htdocs/bookcal/class/calendar.class.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/bookcal/calendar_agenda.php b/htdocs/bookcal/calendar_agenda.php index a8513970196..2f524c72382 100644 --- a/htdocs/bookcal/calendar_agenda.php +++ b/htdocs/bookcal/calendar_agenda.php @@ -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); diff --git a/htdocs/bookcal/class/calendar.class.php b/htdocs/bookcal/class/calendar.class.php index a7a589fb949..60ea456541a 100644 --- a/htdocs/bookcal/class/calendar.class.php +++ b/htdocs/bookcal/class/calendar.class.php @@ -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";