fix warnings 6
Removing PHP8 warnings
This commit is contained in:
parent
031e13d438
commit
9f1ced1fd0
@ -1187,7 +1187,8 @@ if ($action == 'create') {
|
||||
print img_picto('', 'project', 'class="pictofixedwidth"');
|
||||
print $formproject->select_projects((!empty($societe->id) ? $societe->id : -1), $projectid, 'projectid', 0, 0, 1, 1, 0, 0, 0, '', 1, 0, 'maxwidth500 widthcentpercentminusxx');
|
||||
|
||||
print ' <a href="'.DOL_URL_ROOT.'/projet/card.php?socid='.$societe->id.'&action=create&backtopage='.urlencode($_SERVER["PHP_SELF"].'?action=create').'">';
|
||||
//duplicating test from line above to remove PHP8 warning
|
||||
print ' <a href="'.DOL_URL_ROOT.'/projet/card.php?socid='.(!empty($societe->id) ? $societe->id: -1).'&action=create&backtopage='.urlencode($_SERVER["PHP_SELF"].'?action=create').'">';
|
||||
print '<span class="fa fa-plus-circle valignmiddle paddingleft" title="'.$langs->trans("AddProject").'"></span></a>';
|
||||
$urloption = '?action=create&donotclearsession=1';
|
||||
$url = dol_buildpath('comm/action/card.php', 2).$urloption;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user