# Start with the attachments interface toggled invisible,
# but if it was used, keep it open.
if ($form->submitted ne "Upload Attachment" &&
- ! length $q->param("attachment_select")) {
+ (! defined $q->param("attachment_select") ||
+ ! length $q->param("attachment_select"))) {
$form->tmpl_param("attachments-class" => "toggleable");
}
else {
* search: generate configuration files once only when rebuilding
(Gabriel McManus)
+ * attachment: Fix an uninitialised value warning when editing a page
+ that currently has no attachments.
-- Joey Hess <joeyh@debian.org> Mon, 07 Jul 2008 01:52:48 -0400
Use of uninitialized value in length at /usr/share/perl5/IkiWiki/Plugin/attachment.pm line 36.
+> This is unrelated, I've fixed the warning message. --[[Joey]]
+
Is it Ikiwiki bug or my attachment plugin is misconfigured? --[[Paweł|ptecza]]
> Joey, please fix the colon in page name of my report. Ikiwiki sets