fixed minor mistake

This commit is contained in:
Andreas 2019-09-24 14:42:47 +02:00
parent b282255234
commit 8d27f0db8a

View File

@ -11,8 +11,7 @@ class DBThread extends Database {
} }
static function getAllThreads(){ static function getAllThreads(){
$con = self::connectToDB(); $con = self::connectToDB();
$query = $con->prepare("SELECT * FROM thread WHERE ID = :id"); $query = $con->prepare("SELECT * FROM thread");
$query->bindParam(":id", $id);
$query->execute(); $query->execute();
$threadArray = []; $threadArray = [];
while($result = $query->fetch(PDO::FETCH_BOTH)){ while($result = $query->fetch(PDO::FETCH_BOTH)){