fix(database): filter status
This commit is contained in:
parent
a95c763e7e
commit
c18c3dc6f1
|
@ -553,6 +553,10 @@ class Database
|
|||
*/
|
||||
static protected function encodeAttribute(string $name, $value)
|
||||
{
|
||||
if (!self::$statusFilters) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
if (!isset(self::$filters[$name])) {
|
||||
return $value;
|
||||
throw new Exception('Filter not found');
|
||||
|
|
Loading…
Reference in a new issue