mirror of
https://github.com/fruithost/Panel.git
synced 2026-11-30 20:35:44 +09:00
Fix $where
This commit is contained in:
1 parent
0975e840c1
commit
48516b9143
1 file changed
+2
-2
@@ -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();
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
Reference in new issue
Block a user