]> git.mxchange.org Git - friendica.git/commitdiff
We don't need to escape values anymore
authorMichael <heluecht@pirati.ca>
Tue, 26 Mar 2019 21:58:03 +0000 (21:58 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 26 Mar 2019 21:58:03 +0000 (21:58 +0000)
src/Content/ForumManager.php
src/Core/NotificationsManager.php

index ff2e9aa6f1b6e473c0e3f08ee2bf98d7e3d5c56b..af2c3725c40700f6a3d068d6f348fb4a3c72de1f 100644 (file)
@@ -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);
index bd877670c62be496d00c045ba1d863c1e7e49e31..5b2e97005aec370ea502de52570334963a3fca81 100644 (file)
@@ -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));