mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
fix PHP Fatal error: Cannot use preferences as preferences because the name is already in use
This commit is contained in:
parent
5f68bc6664
commit
10e6c62aa3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user