diff options
Diffstat (limited to 'apps/contacts/import.php')
-rwxr-xr-x | apps/contacts/import.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/contacts/import.php b/apps/contacts/import.php index 8fb1c055e0f..95f17a8896f 100755 --- a/apps/contacts/import.php +++ b/apps/contacts/import.php @@ -30,7 +30,7 @@ if(!$file) { } error_log('File: '.$file); if(isset($_POST['method']) && $_POST['method'] == 'new'){ - $id = OC_Contacts_Addressbook::add(OC_User::getUser(), $_POST['addressbookname']); + $id = OC_Contacts_Addressbook::add(OCP\USER::getUser(), $_POST['addressbookname']); OC_Contacts_Addressbook::setActive($id, 1); }else{ $id = $_POST['id']; |