From 5898a0a3ee189ef3e3da5fb92bf89385b5067a57 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Wed, 19 Aug 2020 14:23:13 +0200 Subject: Reviews::Page: Fix perl warning about count being undef --- lib/VNWeb/Reviews/Page.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VNWeb/Reviews/Page.pm b/lib/VNWeb/Reviews/Page.pm index 3e85e5e6..5f2671ac 100644 --- a/lib/VNWeb/Reviews/Page.pm +++ b/lib/VNWeb/Reviews/Page.pm @@ -78,7 +78,7 @@ TUWF::get qr{/$RE{wid}(?:(?[\./])$RE{num})?}, sub { return tuwf->resNotFound if !auth->permReview; #XXX:While in beta my($id, $sep, $num) = (tuwf->capture('id'), tuwf->capture('sep')||'', tuwf->capture('num')); my $w = tuwf->dbRowi( - 'SELECT r.id, r.vid, r.rid, r.summary, r.text, r.spoiler, c.count, r.c_up, r.c_down, uv.vote + 'SELECT r.id, r.vid, r.rid, r.summary, r.text, r.spoiler, COALESCE(c.count,0) AS count, r.c_up, r.c_down, uv.vote , rel.title AS rtitle, rel.original AS roriginal, rel.type AS rtype, rv.vote AS my , ', sql_user(), ',', sql_totime('r.date'), 'AS date,', sql_totime('r.lastmod'), 'AS lastmod FROM reviews r -- cgit v1.2.3