forked from extern/egroupware
quiten warning if $this->user is not set eg. in import
This commit is contained in:
parent
ad26f7e74d
commit
6590fea6be
@ -742,7 +742,7 @@ class infolog_bo
|
|||||||
{
|
{
|
||||||
$responsible = $values['info_responsible'];
|
$responsible = $values['info_responsible'];
|
||||||
}
|
}
|
||||||
if (!($status_only = in_array($this->user, (array)$responsible))) // responsible has implicit right to change status
|
if (!($status_only = $this->user && in_array($this->user, (array)$responsible))) // responsible has implicit right to change status
|
||||||
{
|
{
|
||||||
$status_only = !!array_intersect((array)$responsible,array_keys($GLOBALS['egw']->accounts->memberships($this->user)));
|
$status_only = !!array_intersect((array)$responsible,array_keys($GLOBALS['egw']->accounts->memberships($this->user)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user