Fix warning
This commit is contained in:
parent
259a292704
commit
51a53985fd
@ -147,7 +147,7 @@ if ($socid > 0) {
|
|||||||
$objcon = new stdClass();
|
$objcon = new stdClass();
|
||||||
|
|
||||||
$out = '';
|
$out = '';
|
||||||
$permok = $user->rights->agenda->myactions->create;
|
$permok = $user->hasRight('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') {
|
||||||
$out .= '&originid='.$objthirdparty->id.($objthirdparty->id > 0 ? '&socid='.$objthirdparty->id : '').'&backtopage='.urlencode($_SERVER['PHP_SELF'].($objthirdparty->id > 0 ? '?socid='.$objthirdparty->id : ''));
|
$out .= '&originid='.$objthirdparty->id.($objthirdparty->id > 0 ? '&socid='.$objthirdparty->id : '').'&backtopage='.urlencode($_SERVER['PHP_SELF'].($objthirdparty->id > 0 ? '?socid='.$objthirdparty->id : ''));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user