attachment: Fix an uninitialised value warning when editing a page that currently has no attachments.
parent
eb4a6fb01a
commit
f156308aef
|
@ -34,7 +34,8 @@ sub formbuilder_setup (@) { #{{{
|
|||
# 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 {
|
||||
|
|
|
@ -2,6 +2,8 @@ ikiwiki (2.53) UNRELEASED; urgency=low
|
|||
|
||||
* 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
|
||||
|
||||
|
|
|
@ -9,6 +9,8 @@ following warning:
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue