fix not working changing of preferences, caused by missing reference operator in expand_widget

This commit is contained in:
Ralf Becker 2016-03-20 11:14:06 +00:00
parent 7968afc67d
commit 31b4e66690

View File

@ -447,10 +447,10 @@ class Widget
* If a widget's type is expandable, we need to expand it to make sure we have * If a widget's type is expandable, we need to expand it to make sure we have
* the right class before running the method on it * the right class before running the method on it
* *
* @param Widget $child Widget to check & expand if needed * @param Widget& $child Widget to check & expand if needed
* @param array& $expand Expansion array * @param array& $expand Expansion array
*/ */
protected function expand_widget(Widget $child, array &$expand) protected function expand_widget(Widget &$child, array &$expand)
{ {
if(strpos($child->attrs['type'], '@') !== false || strpos($child->attrs['type'], '$') !== false) if(strpos($child->attrs['type'], '@') !== false || strpos($child->attrs['type'], '$') !== false)
{ {