summaryrefslogtreecommitdiff
path: root/lib/VNDB
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-10-25 07:54:43 +0100
committerYorhel <git@yorhel.nl>2009-10-25 07:54:43 +0100
commit7178f320b7b101fd7d9b482c426f9eba3702a0ab (patch)
tree1fe9551f185d0603a780047e0801a4d495460b24 /lib/VNDB
parent4988df43a6bea9795bd1873c1582a86c367a2a9c (diff)
dbRevisionGet: Fixed 500 when using the 'Include edits of releases' option
Diffstat (limited to 'lib/VNDB')
-rw-r--r--lib/VNDB/DB/Misc.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/DB/Misc.pm b/lib/VNDB/DB/Misc.pm
index b3522d72..e819a1a3 100644
--- a/lib/VNDB/DB/Misc.pm
+++ b/lib/VNDB/DB/Misc.pm
@@ -91,7 +91,7 @@ sub dbRevisionGet {
my %where = (
$o{releases} ? (
- '((c.type = ? AND vr.vid = ?) OR (c.type = ? AND rv.vid = ?))' => [0, $o{iid}, 1, $o{iid}],
+ q{((c.type = 'v' AND vr.vid = ?) OR (c.type = 'r' AND rv.vid = ?))} => [$o{iid}, $o{iid}],
) : (
$o{type} ? (
'c.type = ?' => $o{type} ) : (),