From 6590fea6be8da04c34fc5a45903be5fbe7ba035a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 3 Oct 2016 11:38:15 +0200 Subject: [PATCH] quiten warning if $this->user is not set eg. in import --- infolog/inc/class.infolog_bo.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infolog/inc/class.infolog_bo.inc.php b/infolog/inc/class.infolog_bo.inc.php index 9d29940fc3..0dbd75dac1 100644 --- a/infolog/inc/class.infolog_bo.inc.php +++ b/infolog/inc/class.infolog_bo.inc.php @@ -742,7 +742,7 @@ class infolog_bo { $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))); }