PHP V8 warning
This commit is contained in:
parent
0e3d7c4e2e
commit
9ebfd30dcc
@ -251,6 +251,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
$objthirdparty = $object->thirdparty;
|
$objthirdparty = $object->thirdparty;
|
||||||
|
|
||||||
$out = '';
|
$out = '';
|
||||||
|
$newcardbutton = '';
|
||||||
|
if (!empty($conf->agenda->enabled)) {
|
||||||
|
|
||||||
$permok = $user->rights->agenda->myactions->create;
|
$permok = $user->rights->agenda->myactions->create;
|
||||||
if ((!empty($objthirdparty->id) || !empty($objcon->id)) && $permok) {
|
if ((!empty($objthirdparty->id) || !empty($objcon->id)) && $permok) {
|
||||||
if (is_object($objthirdparty) && get_class($objthirdparty) == 'Societe') {
|
if (is_object($objthirdparty) && get_class($objthirdparty) == 'Societe') {
|
||||||
@ -260,8 +263,6 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
$out .= '&datep='.urlencode(dol_print_date(dol_now(), 'dayhourlog'));
|
$out .= '&datep='.urlencode(dol_print_date(dol_now(), 'dayhourlog'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$newcardbutton = '';
|
|
||||||
if (!empty($conf->agenda->enabled)) {
|
|
||||||
if (!empty($user->rights->agenda->myactions->create) || !empty($user->rights->agenda->allactions->create)) {
|
if (!empty($user->rights->agenda->myactions->create) || !empty($user->rights->agenda->allactions->create)) {
|
||||||
$newcardbutton .= dolGetButtonTitle($langs->trans('AddAction'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/comm/action/card.php?action=create'.$out);
|
$newcardbutton .= dolGetButtonTitle($langs->trans('AddAction'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/comm/action/card.php?action=create'.$out);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user