fix for bug #625: Warning when deleting contacts

This commit is contained in:
Ralf Becker 2007-05-01 08:17:22 +00:00
parent 5c4f58f196
commit 1aca20e56d

View File

@ -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);
}