mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-04 23:54:08 +01:00
* [ADD] Work in progress.
This commit is contained in:
@@ -282,12 +282,17 @@ class QueryData
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $where
|
||||
* @param array|string $where
|
||||
*/
|
||||
public function setWhere($where)
|
||||
{
|
||||
if ($where !== '') {
|
||||
$this->where = 'WHERE ' . $where;
|
||||
if (!empty($where)) {
|
||||
|
||||
if (is_array($where)) {
|
||||
$this->where = 'WHERE ' . implode(' AND ', $where);
|
||||
} else {
|
||||
$this->where = 'WHERE ' . $where;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user