summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/createaddressbook.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/contacts/ajax/createaddressbook.php')
-rw-r--r--apps/contacts/ajax/createaddressbook.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/contacts/ajax/createaddressbook.php b/apps/contacts/ajax/createaddressbook.php
index 3dd38703c17..8fec07ebcae 100644
--- a/apps/contacts/ajax/createaddressbook.php
+++ b/apps/contacts/ajax/createaddressbook.php
@@ -17,10 +17,10 @@ OC_JSON::checkAppEnabled('contacts');
$userid = OC_User::getUser();
$bookid = OC_Contacts_Addressbook::add($userid, $_POST['name'], null);
OC_Contacts_Addressbook::setActive($bookid, 1);
-$book = OC_Contacts_Addressbook::find($bookid);
+$addressbook = OC_Contacts_Addressbook::find($bookid);
$tmpl = new OC_Template('contacts', 'part.chooseaddressbook.rowfields');
-$tmpl->assign('addressbook', $book);
+$tmpl->assign('addressbook', $addressbook);
OC_JSON::success(array(
'page' => $tmpl->fetchPage(),
- 'bookid' => $bookid,
+ 'addressbook' => $addressbook,
));