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:
3b1b77b
)
HTML::Util: Short circuit ohne $value. Behebt gleichzeitig eine Warnung.
author
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 21 Jul 2014 08:08:44 +0000
(10:08 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 21 Jul 2014 08:08:44 +0000
(10:08 +0200)
SL/HTML/Util.pm
patch
|
blob
|
history
diff --git
a/SL/HTML/Util.pm
b/SL/HTML/Util.pm
index
72a7a7f
..
ed5ffde
100644
(file)
--- a/
SL/HTML/Util.pm
+++ b/
SL/HTML/Util.pm
@@
-17,6
+17,8
@@
sub strip {
my $value = !ref($class_or_value) && (($class_or_value // '') eq 'SL::HTML::Util') ? $_[1] : $class_or_value;
+ return '' unless $value;
+
if (!%stripper) {
%stripper = ( parser => HTML::Parser->new );