Fix $where

This commit is contained in:
Adrian Preuß authored and GitHub committed 2023-10-22 16:27:39 +02:00
1 parent 0975e840c1
commit 48516b9143
1 file changed
+2 -2
+2 -2
View File
@@ -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();
}
}
?>
?>