From 10e6c62aa30477113e0d857ca8e8325740a428d7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 29 Mar 2016 06:38:09 +0000 Subject: [PATCH] fix PHP Fatal error: Cannot use preferences as preferences because the name is already in use --- api/src/Contacts.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api/src/Contacts.php b/api/src/Contacts.php index 441541253d..bf1a2b7249 100755 --- a/api/src/Contacts.php +++ b/api/src/Contacts.php @@ -18,9 +18,6 @@ namespace EGroupware\Api; use calendar_bo; // to_do: do NOT require it, just use if there -// explicitly import old, not yet ported api classes -use preferences; - /** * Business object for contacts */ @@ -352,7 +349,7 @@ class Contacts extends Contacts\Storage } else { - $prefs_obj = new preferences($user); + $prefs_obj = new Preferences($user); $preferences = $prefs_obj->read_repository(); $grants = $this->get_grants($user, 'addressbook', $preferences); }