]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/websetup.pm
websetup: Fix bug in array change detection.
[ikiwiki.git] / IkiWiki / Plugin / websetup.pm
index 75aa3681c2e68744f850b39f806cbbd329d55d97..e477bcc20dad42ed2f505f0936b82d93c3271ae9 100644 (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 {