From eef66ae6ed23c4225c2578214d919b344957dc60 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 18 Jul 2020 19:22:03 +0200 Subject: [PATCH] Fix var not defined --- htdocs/projet/activity/perday.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/projet/activity/perday.php b/htdocs/projet/activity/perday.php index c5fb194a1f0..9c80cbd602e 100644 --- a/htdocs/projet/activity/perday.php +++ b/htdocs/projet/activity/perday.php @@ -272,6 +272,7 @@ if ($action == 'addtime' && $user->rights->projet->lire && GETPOST('formfilterac { if (intval($time) > 0) { + $matches = array(); // Hours or minutes of duration if (preg_match("/([0-9]+)duration(hour|min)/", $key, $matches)) {