NEW: Add widget "The next upcoming events"

This commit is contained in:
Laurent Destailleur
2023-05-05 13:42:38 +02:00
parent 57a9ef35ae
commit e0ef2870a4
10 changed files with 298 additions and 27 deletions

View File

@@ -103,7 +103,7 @@ function getDolGlobalString($key, $default = '')
{
global $conf;
// return $conf->global->$key ?? $default;
return (string) (empty($conf->global->$key) ? $default : $conf->global->$key);
return (string) (isset($conf->global->$key) ? $conf->global->$key : $default);
}
/**
@@ -117,7 +117,7 @@ function getDolGlobalInt($key, $default = 0)
{
global $conf;
// return $conf->global->$key ?? $default;
return (int) (empty($conf->global->$key) ? $default : $conf->global->$key);
return (int) (isset($conf->global->$key) ? $conf->global->$key : $default);
}
/**