[Rt-devel] PATCH: silence warnings Widgets/TitleBoxStart
Jim Meyer
purp at acm.org
Wed Nov 16 15:35:47 EST 2005
Attached. The approach I'm taking is to set defaults to '' rather than
undef if the arg is being used in the html/mason page; if it's only used
in the INIT section, I'm doing proper "defined($arg)" checks.
Cheers!
--j
--
Jim Meyer, Geek at Large jmeyer at dreamworksanimation.com
-------------- next part --------------
--- share/html/Widgets/TitleBoxStart 2005-07-25 03:26:34.000000000 -0700
+++ local/html/Widgets/TitleBoxStart 2005-11-16 12:31:47.000000000 -0800
@@ -54,18 +54,18 @@
<div class="titlebox-content<% $bodyclass && " $bodyclass" %>" id="<%$tid%>">
<%ARGS>
$width => undef
-$class => undef
-$bodyclass => undef
+$class => ''
+$bodyclass => ''
$title_href => undef
$title => undef
$title_class => ''
$titleright_href => undef
$titleright => undef
$contentbg => "#dddddd"
$color => "#336699"
-$id => undef
+$id => ''
$hideable => 1
</%ARGS>
<%init>
More information about the Rt-devel
mailing list