From b5d78e82527f02990f8deeb0306ca132d730cd3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 3 Apr 2026 22:00:38 +0200 Subject: [PATCH] fix phpstan (#37735) * fix phpstan * fix phpstan * fix phpstan * fix phpstan * fix phpstan * fix phpstan * fix phpstan * fix phpstan * Update pdf_cyan.modules.php --------- Co-authored-by: Laurent Destailleur --- htdocs/comm/action/peruser.php | 10 +++--- .../facture/doc/pdf_octopus.modules.php | 36 ++++++++++++++++--- .../facture/doc/pdf_sponge.modules.php | 8 ++--- .../modules/propale/doc/pdf_azur.modules.php | 6 ++-- .../modules/propale/doc/pdf_cyan.modules.php | 8 ++--- 5 files changed, 48 insertions(+), 20 deletions(-) diff --git a/htdocs/comm/action/peruser.php b/htdocs/comm/action/peruser.php index e31804811a6..2a9a24cebfd 100644 --- a/htdocs/comm/action/peruser.php +++ b/htdocs/comm/action/peruser.php @@ -5,7 +5,7 @@ * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2011 Juanjo Menent * Copyright (C) 2014 Cedric GROSS - * Copyright (C) 2018-2025 Frédéric France + * Copyright (C) 2018-2026 Frédéric France * Copyright (C) 2023 Florian HENRY * Copyright (C) 2024-2025 MDW * @@ -529,7 +529,7 @@ if ($user->hasRight('agenda', 'myactions', 'create') || $user->hasRight('agenda' $urltocreateaction = DOL_URL_ROOT.'/comm/action/card.php?action=create'; $urltocreateaction .= '&apyear='.$tmpforcreatebutton['year'].'&apmonth='.$tmpforcreatebutton['mon'].'&apday='.$tmpforcreatebutton['mday'].'&aphour='.$tmpforcreatebutton['hours'].'&apmin='.$tmpforcreatebutton['minutes']; - $urltocreateaction .= '&backtopage='.urlencode($_SERVER["PHP_SELF"].($newparam ? '?'.$newparam : '')); + $urltocreateaction .= '&backtopage='.urlencode($_SERVER["PHP_SELF"].'?'.$newparam); $newcardbutton .= dolGetButtonTitle($langs->trans("AddAction"), '', 'fa fa-plus-circle', $urltocreateaction); } @@ -600,15 +600,15 @@ if (!empty($conf->use_javascript_ajax)) { // If javascript on } // External calendars - if (is_array($showextcals) && count($showextcals) > 0) { + if (is_array($showextcals) && count($showextcals) > 0) { // @phpstan-ignore-line $showextcals is always an array $s .= '