Fetch one, instead of all

This commit is contained in:
nonmakina 2021-01-18 04:26:18 -06:00
parent 568b194f21
commit 1337b233e7

View file

@ -105,7 +105,7 @@
$query->bindValue(':id', $thread_id, PDO::PARAM_INT);
$query->execute() or error(db_error($query));
return $query->fetchAll(PDO::FETCH_ASSOC);
return $query->fetch(PDO::FETCH_ASSOC);
}
/**