From c1b355fcac04df23c7d31d46dc520d227cf8e73d Mon Sep 17 00:00:00 2001 From: hystepik Date: Sun, 27 Nov 2022 00:44:05 +0100 Subject: [PATCH] Fix : php 8.1 warnings --- htdocs/comm/action/card.php | 2 +- htdocs/compta/bank/bankentries_list.php | 1 + .../class/bonprelevement.class.php | 4 +- htdocs/core/lib/modulebuilder.lib.php | 2 +- htdocs/hrm/skill_card.php | 2 +- htdocs/modulebuilder/index.php | 2 +- htdocs/reception/card.php | 2 +- htdocs/stripe/charge.php | 298 +++++++++--------- 8 files changed, 158 insertions(+), 155 deletions(-) diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index 7788c72ea59..9a8c59b8533 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -1253,7 +1253,7 @@ if ($action == 'create') { print $langs->trans("DayOfWeek").': '; print ''; // limit date - $repeateventlimitdate = $repeateventlimitdate ? $repeateventlimitdate : ''; + $repeateventlimitdate = !empty($repeateventlimitdate) ? $repeateventlimitdate : ''; print '