From be1ef19d3abbf6c13aee83075750007a6a7e5aa6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 18 Aug 2024 00:26:04 +0200 Subject: [PATCH] Fix phan warning --- htdocs/intracommreport/card.php | 2 +- htdocs/intracommreport/class/intracommreport.class.php | 2 -- htdocs/intracommreport/list.php | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/htdocs/intracommreport/card.php b/htdocs/intracommreport/card.php index db3a8e25a0eb2..4c978061a26c5 100644 --- a/htdocs/intracommreport/card.php +++ b/htdocs/intracommreport/card.php @@ -86,7 +86,7 @@ } // Initialize a technical objects -$object = new IntraCommReport($db); +$object = new IntracommReport($db); $extrafields = new ExtraFields($db); $diroutputmassaction = $conf->intracommreport->dir_output.'/temp/massgeneration/'.$user->id; $hookmanager->initHooks(array($object->element.'card', 'globalcard')); // Note that conf->hooks_modules contains array diff --git a/htdocs/intracommreport/class/intracommreport.class.php b/htdocs/intracommreport/class/intracommreport.class.php index a21b3a46915e8..1f4c455cd2280 100644 --- a/htdocs/intracommreport/class/intracommreport.class.php +++ b/htdocs/intracommreport/class/intracommreport.class.php @@ -752,8 +752,6 @@ public function getNomUrl($withpicto = 0, $option = '', $notooltip = 0, $morecss */ public function getKanbanView($option = '', $arraydata = null) { - global $conf, $langs; - $selected = (empty($arraydata['selected']) ? 0 : $arraydata['selected']); $return = '
'; diff --git a/htdocs/intracommreport/list.php b/htdocs/intracommreport/list.php index 59680382e5d15..5f8b5108bf941 100644 --- a/htdocs/intracommreport/list.php +++ b/htdocs/intracommreport/list.php @@ -101,7 +101,7 @@ // Initialize a technical objects -$object = new IntraCommReport($db); +$object = new IntracommReport($db); $extrafields = new ExtraFields($db); $diroutputmassaction = $conf->mymodule->dir_output.'/temp/massgeneration/'.$user->id; $hookmanager->initHooks(array($contextpage)); // Note that conf->hooks_modules contains array of activated contexes @@ -526,7 +526,7 @@ // Add code for pre mass action (confirmation or email presend form) $topicmail = "SendIntraCommReportRef"; $modelmail = "intracommreport"; -$objecttmp = new IntraCommReport($db); +$objecttmp = new IntracommReport($db); $trackid = 'xxxx'.$object->id; include DOL_DOCUMENT_ROOT.'/core/tpl/massactions_pre.tpl.php';