websetup: Fix bug in array change detection.

master
Joey Hess 2010-01-09 16:27:08 -05:00
parent 9dbeb003df
commit 1f51af907e
2 changed files with 6 additions and 1 deletions

View File

@ -362,7 +362,11 @@ sub showform ($$) {
@value=sort grep { length $_ } @value;
my @oldvalue=sort grep { length $_ }
(defined $config{$key} ? @{$config{$key}} : ());
if ((@oldvalue) == (@value)) {
my $same=(@oldvalue) == (@value);
for (my $x=0; $same && $x < @value; $x++) {
$same=0 if $value[$x] ne $oldvalue[$x];
}
if ($same) {
delete $rebuild{$field};
}
else {

1
debian/changelog vendored
View File

@ -7,6 +7,7 @@ ikiwiki (3.20100104) UNRELEASED; urgency=low
* comments: Fix permalinks for comments using new conflict-free filenames.
* img: Support alignment of images with captions. (Giuseppe Bilotta)
* websetup: Fix utf-8 problems.
* websetup: Fix bug in array change detection.
-- Joey Hess <joeyh@debian.org> Mon, 04 Jan 2010 12:53:24 -0500