fix PHP Fatal error: Cannot use preferences as preferences because the name is already in use

This commit is contained in:
Ralf Becker 2016-03-29 06:38:09 +00:00
parent 5f68bc6664
commit 10e6c62aa3

View File

@ -18,9 +18,6 @@ namespace EGroupware\Api;
use calendar_bo; // to_do: do NOT require it, just use if there 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 * Business object for contacts
*/ */
@ -352,7 +349,7 @@ class Contacts extends Contacts\Storage
} }
else else
{ {
$prefs_obj = new preferences($user); $prefs_obj = new Preferences($user);
$preferences = $prefs_obj->read_repository(); $preferences = $prefs_obj->read_repository();
$grants = $this->get_grants($user, 'addressbook', $preferences); $grants = $this->get_grants($user, 'addressbook', $preferences);
} }