From 17c53373127a52ace5b9cf7cd16003c49f555c84 Mon Sep 17 00:00:00 2001 From: BENKE Charlene <1179011+defrance@users.noreply.github.com> Date: Tue, 24 May 2022 22:53:26 +0200 Subject: [PATCH] PHP V8 Warning --- htdocs/product/agenda.php | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/htdocs/product/agenda.php b/htdocs/product/agenda.php index ec8a6dd4951..b595bd3b9cb 100644 --- a/htdocs/product/agenda.php +++ b/htdocs/product/agenda.php @@ -186,25 +186,16 @@ if ($id > 0 || $ref) { $objcon = new stdClass(); $out = ''; - $permok = $user->rights->agenda->myactions->create; - if ((!empty($objproduct->id) || !empty($objcon->id)) && $permok) { - //$out.='id.'&percentage=-1'; - //$out.=$langs->trans("AddAnAction").' '; - //$out.=img_picto($langs->trans("AddAnAction"),'filenew'); - //$out.=""; - } - - - //print '