1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

Namespace fix.

This commit is contained in:
Thomas Tanghus 2012-11-01 15:31:36 +01:00
parent 307409b7e2
commit 71e247f097

View File

@ -219,11 +219,11 @@ class App {
*/
public static function scanCategories($vccontacts = null) {
if (is_null($vccontacts)) {
$vcaddressbooks = Addressbook::all(OCP\USER::getUser());
$vcaddressbooks = Addressbook::all(\OCP\USER::getUser());
if(count($vcaddressbooks) > 0) {
$vcaddressbookids = array();
foreach($vcaddressbooks as $vcaddressbook) {
if($vcaddressbook['userid'] === OCP\User::getUser()) {
if($vcaddressbook['userid'] === \OCP\User::getUser()) {
$vcaddressbookids[] = $vcaddressbook['id'];
}
}