summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Producers.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-11-29 15:42:17 +0100
committerYorhel <git@yorhel.nl>2008-11-29 15:42:17 +0100
commit2fccaa6db5ca4bf5e2c9f50b810ac24dc14c500e (patch)
treea116e6e3cbe12263878fd1f11440d0a58d706afe /lib/VNDB/Handler/Producers.pm
parent1abb35f4ce98e4a69c059f72b427c0c07d26cc40 (diff)
Add new producer bugfix
Diffstat (limited to 'lib/VNDB/Handler/Producers.pm')
-rw-r--r--lib/VNDB/Handler/Producers.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Producers.pm b/lib/VNDB/Handler/Producers.pm
index 5669d7b4..d3e37a36 100644
--- a/lib/VNDB/Handler/Producers.pm
+++ b/lib/VNDB/Handler/Producers.pm
@@ -88,7 +88,7 @@ sub edit {
my $p = $pid && $self->dbProducerGet(id => $pid, what => 'changes', $rev ? (rev => $rev) : ())->[0];
return 404 if $pid && !$p->{id};
- $rev = undef if $p->{cid} == $p->{latest};
+ $rev = undef if !$p || $p->{cid} == $p->{latest};
return $self->htmlDenied if !$self->authCan('edit')
|| $pid && ($p->{locked} && !$self->authCan('lock') || $p->{hidden} && !$self->authCan('del'));