forked from GNUsocial/gnu-social
[CORE][DB] Specify desired case in array_change_case, for clarity
This commit is contained in:
parent
1da1f0918e
commit
0845224188
@ -158,7 +158,7 @@ abstract class DB
|
||||
*/
|
||||
public static function findBy(string $table, array $criteria, ?array $orderBy = null, ?int $limit = null, ?int $offset = null): array
|
||||
{
|
||||
$criteria = array_change_key_case($criteria);
|
||||
$criteria = array_change_key_case($criteria, CASE_LOWER);
|
||||
$ops = array_intersect(array_keys($criteria), self::$find_by_ops);
|
||||
$repo = self::getRepository($table);
|
||||
if (empty($ops)) {
|
||||
|
Loading…
Reference in New Issue
Block a user