Fetch one, instead of all

This commit is contained in:
nonmakina 2021-01-18 04:26:18 -06:00
parent 6448c3fe83
commit 26f8c332ef
1 changed files with 1 additions and 1 deletions

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);
}
/**