From 48516b9143cd52ffe613a5d4c1fb1c19be289e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Preu=C3=9F?= <1371300+Bizarrus@users.noreply.github.com> Date: Sun, 22 Oct 2023 16:27:39 +0200 Subject: [PATCH] Fix $where --- classes/DatabaseFactory.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/DatabaseFactory.class.php b/classes/DatabaseFactory.class.php index a792fbb..475db37 100644 --- a/classes/DatabaseFactory.class.php +++ b/classes/DatabaseFactory.class.php @@ -76,7 +76,7 @@ return $this->query($query, null, $parameters)->fetchAll(\PDO::FETCH_OBJ); } - public function update(string $table, array $where, array $parameters = []) { + public function update(string $table, string|array $where, array $parameters = []) { $fields = ''; foreach($parameters AS $name => $value) { @@ -149,4 +149,4 @@ return $this->lastInsertId(); } } -?> \ No newline at end of file +?>