projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
301733b
)
avoid uninitialized value
author
Joey Hess
<joey@gnu.kitenet.net>
Fri, 19 Dec 2008 22:57:09 +0000
(17:57 -0500)
committer
Joey Hess
<joey@gnu.kitenet.net>
Fri, 19 Dec 2008 22:57:09 +0000
(17:57 -0500)
This can happen when a new field,
such as the new lasttry, is added.
IkiWiki/Plugin/aggregate.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/aggregate.pm
b/IkiWiki/Plugin/aggregate.pm
index 9b531b6128c1de09d81e9c1b60da25ab736e2732..97dd036f6f4ca2816b6a2beee0f8aeefbbc0d405 100644
(file)
--- a/
IkiWiki/Plugin/aggregate.pm
+++ b/
IkiWiki/Plugin/aggregate.pm
@@
-343,7
+343,8
@@
sub savestate () {
push @line, "tag=$_" foreach @{$data->{tags}};
}
else {
- push @line, "$field=".$data->{$field};
+ push @line, "$field=".$data->{$field}
+ if defined $data->{$field};
}
}
print OUT join(" ", @line)."\n" || error("write $newfile: $!", $cleanup);