mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
Fix handling of first example - simple assignment
This commit is contained in:
parent
0b41f9da89
commit
965fb54ffa
@ -207,6 +207,11 @@ abstract class etemplate_widget_transformer extends etemplate_widget
|
|||||||
if (isset($action[$attrs[$attr]]) || !isset($action[$attrs[$attr]]) && isset($action['__default__']))
|
if (isset($action[$attrs[$attr]]) || !isset($action[$attrs[$attr]]) && isset($action['__default__']))
|
||||||
{
|
{
|
||||||
$actions = isset($action[$attrs[$attr]]) ? $action[$attrs[$attr]] : $action['__default__'];
|
$actions = isset($action[$attrs[$attr]]) ? $action[$attrs[$attr]] : $action['__default__'];
|
||||||
|
if(!is_array($actions))
|
||||||
|
{
|
||||||
|
$attrs[$attr] = $actions;
|
||||||
|
$actions = array($attr => $actions);
|
||||||
|
}
|
||||||
if (self::DEBUG) error_log(__METHOD__."(attr='$attr', action=".array2string($action).") attrs['$attr']=='{$attrs[$attr]}' --> running actions");
|
if (self::DEBUG) error_log(__METHOD__."(attr='$attr', action=".array2string($action).") attrs['$attr']=='{$attrs[$attr]}' --> running actions");
|
||||||
foreach($actions as $attr => $action)
|
foreach($actions as $attr => $action)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user