From 1aca20e56d204cd9fe449eac832292d812c926c3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 1 May 2007 08:17:22 +0000 Subject: [PATCH] fix for bug #625: Warning when deleting contacts --- addressbook/inc/class.bocontacts.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.bocontacts.inc.php b/addressbook/inc/class.bocontacts.inc.php index 60fd397afc..c43dd1a7c3 100755 --- a/addressbook/inc/class.bocontacts.inc.php +++ b/addressbook/inc/class.bocontacts.inc.php @@ -963,9 +963,9 @@ class bocontacts extends socontacts * @param int $list list-id * @return false on error */ - function remove_from_list($contact,$list) + function remove_from_list($contact,$list=null) { - if (!$this->check_list($list,EGW_ACL_EDIT)) return false; + if ($list && !$this->check_list($list,EGW_ACL_EDIT)) return false; return parent::remove_from_list($contact,$list); }