From ba5b0003698ef0642cc529d7506fe9ea332ab5c4 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 24 Oct 2024 21:36:44 +0200 Subject: [PATCH] change api\Etemplate\Widget::getElementAttribute($name,$attr) to NO longer return a reference, use setElementAttribute($name,$attr) if you need a reference --- addressbook/inc/class.addressbook_ui.inc.php | 2 +- preferences/inc/class.preferences_password.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();