From 7542ae1ac96fde64fb81632255eeb224c420cecc Mon Sep 17 00:00:00 2001 From: Sieciech Date: Sat, 27 Feb 2021 10:49:56 +0100 Subject: [PATCH] new --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }