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 +?>