1
0
mirror of https://gitnet.fr/deblan/gist.git synced 2021-08-14 08:30:49 +02:00

Title filter in account page

This commit is contained in:
Simon Vieille 2017-04-23 16:30:26 +02:00
parent 9dfbde6730
commit 36f4fb98ff

View File

@ -64,6 +64,10 @@ class User extends BaseUser implements UserInterface
$query->filterByType($options['type']);
}
if (!empty($options['title'])) {
$query->filterByTitle('%'.$options['title'].'%', Criteria::LIKE);
}
if (!empty($options['cipher']) && $options['cipher'] !== 'anyway') {
$bools = array(
'yes' => true,