mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Filter/Errors
* move checks to __construct so they can be run on $_POST data and don't create malformed filter urls * if we received malformed $_GET params, build new params and reload * do not store error state in cache * cleanup
This commit is contained in:
@@ -269,8 +269,8 @@ class ProfileListFilter extends Filter
|
||||
{
|
||||
parent::__construct($data, $opts);
|
||||
|
||||
if (!empty($this->criteria['cr']))
|
||||
if (array_intersect($this->criteria['cr'], [2, 5, 6, 7, 21]))
|
||||
if (!empty($this->values['cr']))
|
||||
if (array_intersect($this->values['cr'], [2, 5, 6, 7, 21]))
|
||||
$this->useLocalList = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user