Browse Source

We don't need to escape values anymore

pull/6940/head
Michael 3 years ago
parent
commit
83ff2b0382
  1. 2
      src/Content/ForumManager.php
  2. 6
      src/Core/NotificationsManager.php

2
src/Content/ForumManager.php

@ -205,7 +205,7 @@ class ForumManager
AND NOT `contact`.`pending` AND NOT `contact`.`archive`
AND `contact`.`success_update` > `failure_update`
GROUP BY `contact`.`id` ",
intval(local_user())
local_user()
);
return DBA::toArray($stmtContacts);

6
src/Core/NotificationsManager.php

@ -580,9 +580,9 @@ class NotificationsManager extends BaseObject
LEFT JOIN `fcontact` ON `intro`.`fid` = `fcontact`.`id`
WHERE `intro`.`uid` = ? $sql_extra AND `intro`.`blocked` = 0
LIMIT ?, ?",
intval($_SESSION['uid']),
intval($start),
intval($limit)
$_SESSION['uid'],
$start,
$limit
);
if (DBA::isResult($stmtNotifies)) {
$notifs = $this->formatIntros(DBA::toArray($stmtNotifies));

Loading…
Cancel
Save