diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon index a6e6b99d17c..20d323fc6e5 100644 --- a/dev/build/phpstan/phpstan-baseline.neon +++ b/dev/build/phpstan/phpstan-baseline.neon @@ -14022,12 +14022,6 @@ parameters: count: 1 path: ../../../htdocs/fichinter/tpl/linkedobjectblock.tpl.php - - - message: '#^Variable \$dolibarr_main_db_encrypted_pass might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/filefunc.inc.php - - message: '#^If condition is always true\.$#' identifier: if.alwaysTrue @@ -21660,12 +21654,6 @@ parameters: count: 1 path: ../../../htdocs/recruitment/recruitmentjobposition_card.php - - - message: '#^Variable \$maxlength might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: ../../../htdocs/recruitment/recruitmentjobposition_card.php - - message: '#^Variable \$maxlength might not be defined\.$#' identifier: variable.undefined diff --git a/htdocs/admin/agenda_xcal.php b/htdocs/admin/agenda_xcal.php index 66b1ac1988a..1656a5c3f25 100644 --- a/htdocs/admin/agenda_xcal.php +++ b/htdocs/admin/agenda_xcal.php @@ -194,7 +194,7 @@ $getentity = ($conf->entity > 1 ? "&entity=".$conf->entity : ""); $message = ''; $urlvcal = ''; -$urlvcal .= $urlwithroot.'/public/agenda/agendaexport.php?format=vcal'.$getentity.'&exportkey='.($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY ? urlencode(getDolGlobalString('MAIN_AGENDA_XCAL_EXPORTKEY')) : 'KEYNOTDEFINED').''; +$urlvcal .= $urlwithroot.'/public/agenda/agendaexport.php?format=vcal'.$getentity.'&exportkey='.urlencode(getDolGlobalString('MAIN_AGENDA_XCAL_EXPORTKEY', 'KEYNOTDEFINED')).''; $message .= img_picto('', 'globe').' '.str_replace('{url}', $urlvcal, ''.$langs->trans("WebCalUrlForVCalExport", 'vcal', '').''); $message .= '