diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-04-09 16:29:56 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-04-09 16:30:58 +0200 |
commit | 4fda6af725ea775750905983255ab3dc9ceeb2b9 (patch) | |
tree | a9716bcc83e9859d9d96c47cc75d26f8512331de /apps/contacts/lib | |
parent | 9c247ce874697ed6833c58d21ddecee418ddb525 (diff) | |
download | nextcloud-server-4fda6af725ea775750905983255ab3dc9ceeb2b9.tar.gz nextcloud-server-4fda6af725ea775750905983255ab3dc9ceeb2b9.zip |
Contacts: Fix for not being able to add contact to empty/non-existant address book.
Diffstat (limited to 'apps/contacts/lib')
-rw-r--r-- | apps/contacts/lib/addressbook.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/contacts/lib/addressbook.php b/apps/contacts/lib/addressbook.php index 052c19e55fe..9061fa19140 100644 --- a/apps/contacts/lib/addressbook.php +++ b/apps/contacts/lib/addressbook.php @@ -169,7 +169,7 @@ class OC_Contacts_Addressbook{ $uid = OC_User::getUser(); } $prefbooks = OC_Preferences::getValue($uid,'contacts','openaddressbooks',null); - if(is_null($prefbooks)){ + if(!$prefbooks){ $addressbooks = OC_Contacts_Addressbook::all($uid); if(count($addressbooks) == 0){ OC_Contacts_Addressbook::add($uid,'default','Default Address Book'); |