case-insensitive username search

This commit is contained in:
Shish 2019-12-15 16:21:31 +00:00
parent 1c3d4ad5e3
commit 0d6623c928

View file

@ -37,7 +37,7 @@ class ActorColumn extends Column
{
public function __construct($name, $title)
{
parent::__construct($name, $title, "((username LIKE :{$name}) OR (address::text LIKE :{$name}))");
parent::__construct($name, $title, "((LOWER(username) LIKE LOWER(:{$name})) OR (address::text LIKE :{$name}))");
$this->input_mod = function ($var) {
return "%$var%";
};