Skip to content

Commit

Permalink
Fix phan warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 17, 2024
1 parent 72b37a2 commit be1ef19
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion htdocs/intracommreport/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions htdocs/intracommreport/class/intracommreport.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<div class="box-flex-item box-flex-grow-zero">';
Expand Down
4 changes: 2 additions & 2 deletions htdocs/intracommreport/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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';

Expand Down

0 comments on commit be1ef19

Please sign in to comment.