summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-03-20 16:37:20 +0100
committerYorhel <git@yorhel.nl>2011-03-20 16:37:20 +0100
commit378fc091c78814377c04fad0bc11edd9dee33a36 (patch)
treec1187d6165de68934b4d4be75bf542511105ff38 /lib
parenta1a53f272aef98e30141e5a9dc554b92cf90b137 (diff)
chardb: Fixed no-change-edit-bug + test data insertion error
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/Chars.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Chars.pm b/lib/VNDB/Handler/Chars.pm
index 25be9487..2c7d3330 100644
--- a/lib/VNDB/Handler/Chars.pm
+++ b/lib/VNDB/Handler/Chars.pm
@@ -300,7 +300,7 @@ sub edit {
# check for changes
my $same = $id && !grep $frm->{$_} ne $b4{$_}, keys %b4;
- $self->resRedirect("/c$id", 'post') if !$copy && $same;
+ return $self->resRedirect("/c$id", 'post') if !$copy && $same;
$frm->{_err} = ['nochanges'] if $copy && $same;
}