add quotes
This commit is contained in:
parent
2d33a9df4e
commit
8bc7bbc8a3
|
@ -36,7 +36,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 id=\"{$work}\";");
|
||||
if ($res) {
|
||||
$res = $res->fetchArray();
|
||||
$count = $res['count(*)'];
|
||||
|
|
Loading…
Reference in New Issue