diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 7da90c8fb7..a2836a3b46 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -2801,7 +2801,7 @@ class addressbook_ui extends addressbook_bo $preserve['old_owner'] = $content['owner']; unset($preserve['jpegphoto'], $content['jpegphoto']); // unused and messes up json encoding (not utf-8) $this->tmpl->setElementAttribute('tabs', 'add_tabs', true); - $tabs =& $this->tmpl->getElementAttribute('tabs', 'extraTabs'); + $tabs =& $this->tmpl->setElementAttribute('tabs', 'extraTabs'); if (($first_call = !isset($tabs))) { $tabs = array(); diff --git a/preferences/inc/class.preferences_password.inc.php b/preferences/inc/class.preferences_password.inc.php index 90fea2220b..3984904cd5 100644 --- a/preferences/inc/class.preferences_password.inc.php +++ b/preferences/inc/class.preferences_password.inc.php @@ -197,7 +197,7 @@ class preferences_password ]; $tmpl->setElementAttribute('tabs', 'add_tabs', true); - $tabs =& $tmpl->getElementAttribute('tabs', 'extraTabs'); + $tabs =& $tmpl->setElementAttribute('tabs', 'extraTabs'); if (($first_call = !isset($tabs))) { $tabs = array();