mirror of
https://github.com/friendica/friendica
synced 2025-04-19 09:50:11 +00:00
Use DBA::quoteIdentifier in Database::escapeFields
This commit is contained in:
parent
95b67f5e46
commit
e445975c20
2 changed files with 3 additions and 3 deletions
|
@ -1438,7 +1438,7 @@ class Database
|
|||
array_walk($fields, function(&$value, $key) use ($options)
|
||||
{
|
||||
$field = $value;
|
||||
$value = '`' . str_replace('`', '``', $value) . '`';
|
||||
$value = DBA::quoteIdentifier($field);
|
||||
|
||||
if (!empty($options['group_by']) && !in_array($field, $options['group_by'])) {
|
||||
$value = 'ANY_VALUE(' . $value . ') AS ' . $value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue