From 21ebecac5453673fa4241ba6708de5edf78c8a26 Mon Sep 17 00:00:00 2001 From: Johannes Kantz <67144859+JohannesKantz@users.noreply.github.com> Date: Thu, 12 Jan 2023 14:41:51 +0100 Subject: [PATCH] fix: select fetch --- BancaDati/BancaDati.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BancaDati/BancaDati.php b/BancaDati/BancaDati.php index 0874c6d..12f9205 100644 --- a/BancaDati/BancaDati.php +++ b/BancaDati/BancaDati.php @@ -118,7 +118,7 @@ class BancaDati { $sql .= $order["order"]; } try { - return $this->pdo->query($sql); + return $this->pdo->query($sql)->fetch(); }catch (PDOException $e){ die; }