From: Michael Date: Tue, 26 Mar 2019 21:58:03 +0000 (+0000) Subject: We don't need to escape values anymore X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=83ff2b03826ef105e307ddaadd2b1dfe479afba2;p=friendica.git We don't need to escape values anymore --- diff --git a/src/Content/ForumManager.php b/src/Content/ForumManager.php index ff2e9aa6f1..af2c3725c4 100644 --- a/src/Content/ForumManager.php +++ b/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); diff --git a/src/Core/NotificationsManager.php b/src/Core/NotificationsManager.php index bd877670c6..5b2e97005a 100644 --- a/src/Core/NotificationsManager.php +++ b/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));