From 427d545ae31324ade3beddd6027794bb506222ba Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Thu, 14 Sep 2017 17:22:49 +1000 Subject: [PATCH] * CMTD::Helpers->captcha_by_id --- lib/CMTD/Helpers.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CMTD/Helpers.pm b/lib/CMTD/Helpers.pm index 5e74ed4..5f36afd 100644 --- a/lib/CMTD/Helpers.pm +++ b/lib/CMTD/Helpers.pm @@ -82,7 +82,7 @@ sub register { }); $app->helper(captcha_by_id => sub { my ($c, $cid) = @_; - return $c->app->db->select('captcha', '*', {cid => $cid})->hash; + return $c->app->db->select('captcha', '*', {id => $cid})->hash; }); $app->helper(captcha_solve => sub { my ($c, $id, $input) = @_;