mirror of
https://github.com/friendica/friendica
synced 2025-04-23 01:10:11 +00:00
Rename dbesc to DBA::escape
This commit is contained in:
parent
d3a598f589
commit
a6fb3568f9
79 changed files with 665 additions and 670 deletions
|
@ -66,7 +66,7 @@ class NotificationsManager extends BaseObject
|
|||
$filter_str = [];
|
||||
$filter_sql = "";
|
||||
foreach ($filter as $column => $value) {
|
||||
$filter_str[] = sprintf("`%s` = '%s'", $column, dbesc($value));
|
||||
$filter_str[] = sprintf("`%s` = '%s'", $column, DBA::escape($value));
|
||||
}
|
||||
if (count($filter_str) > 0) {
|
||||
$filter_sql = "AND " . implode(" AND ", $filter_str);
|
||||
|
@ -134,9 +134,9 @@ class NotificationsManager extends BaseObject
|
|||
return q(
|
||||
"UPDATE `notify` SET `seen` = %d WHERE (`link` = '%s' OR (`parent` != 0 AND `parent` = %d AND `otype` = '%s')) AND `uid` = %d",
|
||||
intval($seen),
|
||||
dbesc($note['link']),
|
||||
DBA::escape($note['link']),
|
||||
intval($note['parent']),
|
||||
dbesc($note['otype']),
|
||||
DBA::escape($note['otype']),
|
||||
intval(local_user())
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue