projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6056e1d
)
Autovification sollte auch genau das tun, und nicht clobbern.
author
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 29 Dec 2011 09:41:40 +0000
(10:41 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 29 Dec 2011 09:41:40 +0000
(10:41 +0100)
SL/Request.pm
patch
|
blob
|
history
diff --git
a/SL/Request.pm
b/SL/Request.pm
index
d339cb7
..
57b7297
100644
(file)
--- a/
SL/Request.pm
+++ b/
SL/Request.pm
@@
-153,8
+153,8
@@
sub _recode_recursively {
# though.
$to->{$key} = $iconv->convert("" . $from->{$key});
} else {
# though.
$to->{$key} = $iconv->convert("" . $from->{$key});
} else {
- $to->{$key} = {} if 'HASH' eq ref $from->{$key};
- $to->{$key} = [] if 'ARRAY' eq ref $from->{$key};
+ $to->{$key}
||
= {} if 'HASH' eq ref $from->{$key};
+ $to->{$key}
||
= [] if 'ARRAY' eq ref $from->{$key};
_recode_recursively($iconv, $from->{$key}, $to->{$key});
}
}
_recode_recursively($iconv, $from->{$key}, $to->{$key});
}
}
@@
-167,8
+167,8
@@
sub _recode_recursively {
# though.
$from->[$idx] = $iconv->convert("" . $from->[$idx]);
} else {
# though.
$from->[$idx] = $iconv->convert("" . $from->[$idx]);
} else {
- $to->[$idx] = {} if 'HASH' eq ref $from->[$idx];
- $to->[$idx] = [] if 'ARRAY' eq ref $from->[$idx];
+ $to->[$idx]
||
= {} if 'HASH' eq ref $from->[$idx];
+ $to->[$idx]
||
= [] if 'ARRAY' eq ref $from->[$idx];
_recode_recursively($iconv, $from->[$idx], $to->[$idx]);
}
}
_recode_recursively($iconv, $from->[$idx], $to->[$idx]);
}
}