From 2aa19e469ddb5b20e19abb5375275b5e7411fe44 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 27 May 2019 20:23:40 +0200 Subject: [PATCH] Fix edit validator --- htdocs/holiday/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/holiday/card.php b/htdocs/holiday/card.php index 4b5e0aba944..11a1d5054b9 100644 --- a/htdocs/holiday/card.php +++ b/htdocs/holiday/card.php @@ -1270,7 +1270,7 @@ else print ''; print ''.$valideur->getNomUrl(-1); $include_users = $object->fetch_users_approver_holiday(); - if (in_array($user->id, $include_users) && $object->statut != 1) + if (is_array($include_users) && in_array($user->id, $include_users) && $object->statut != Holiday::STATUS_DRAFT) { print ''.img_edit($langs->trans("Edit")).''; }