diff --git a/index.php b/index.php index a296c02..fe9df6c 100644 --- a/index.php +++ b/index.php @@ -19,7 +19,7 @@ class ConnectionManager { $stmt = self::$connection->prepare($query); $stmt->execute($params); - $stmt->setFetchMode(PDO::FETCH_INTO, $output); + $stmt->setFetchMode(PDO::FETCH_INTO, new $output()); return $stmt->fetch(); }