]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/Database.php
Merge pull request #11784 from MrPetovan/task/11779-blocklist-notification
[friendica.git] / src / Database / Database.php
index 3276e90e5294bd9cc35f4871e0156381dd227362..cd2803c0fc5c88368766a76c991beba2a94c8acd 100644 (file)
@@ -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;