change api\Etemplate\Widget::getElementAttribute($name,$attr) to NO longer return a reference, use setElementAttribute($name,$attr) if you need a reference

This commit is contained in:
ralf 2024-10-24 21:36:44 +02:00
parent 2552bea6a2
commit ba5b000369
2 changed files with 2 additions and 2 deletions

View File

@ -2801,7 +2801,7 @@ class addressbook_ui extends addressbook_bo
$preserve['old_owner'] = $content['owner']; $preserve['old_owner'] = $content['owner'];
unset($preserve['jpegphoto'], $content['jpegphoto']); // unused and messes up json encoding (not utf-8) unset($preserve['jpegphoto'], $content['jpegphoto']); // unused and messes up json encoding (not utf-8)
$this->tmpl->setElementAttribute('tabs', 'add_tabs', true); $this->tmpl->setElementAttribute('tabs', 'add_tabs', true);
$tabs =& $this->tmpl->getElementAttribute('tabs', 'extraTabs'); $tabs =& $this->tmpl->setElementAttribute('tabs', 'extraTabs');
if (($first_call = !isset($tabs))) if (($first_call = !isset($tabs)))
{ {
$tabs = array(); $tabs = array();

View File

@ -197,7 +197,7 @@ class preferences_password
]; ];
$tmpl->setElementAttribute('tabs', 'add_tabs', true); $tmpl->setElementAttribute('tabs', 'add_tabs', true);
$tabs =& $tmpl->getElementAttribute('tabs', 'extraTabs'); $tabs =& $tmpl->setElementAttribute('tabs', 'extraTabs');
if (($first_call = !isset($tabs))) if (($first_call = !isset($tabs)))
{ {
$tabs = array(); $tabs = array();