fix column name
This commit is contained in:
parent
8d11a9b3b3
commit
18ab068947
|
@ -39,7 +39,7 @@ if (array_key_exists('give', $_GET)) {
|
|||
// We're showing the number of kudos
|
||||
|
||||
$work = filter_var($_GET['show'], FILTER_SANITIZE_STRING);
|
||||
$res = $db->query("select count(*) from works where id=\"{$work}\";");
|
||||
$res = $db->query("select count(*) from works where workid=\"{$work}\";");
|
||||
if ($res) {
|
||||
$res = $res->fetchArray();
|
||||
$count = $res['count(*)'];
|
||||
|
|
Loading…
Reference in New Issue