Fetch one, instead of all
This commit is contained in:
parent
6448c3fe83
commit
26f8c332ef
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue