]> git.mxchange.org Git - friendica.git/blobdiff - mod/manage.php
Renamed functions
[friendica.git] / mod / manage.php
index 2943a229cfd24d3f591503ae7807ac4faf128d1a..f81afb09a6e30e18ca2ba0bcecd23151adb2a7da 100644 (file)
@@ -60,14 +60,14 @@ function manage_post(App $a) {
                // Check if the target user is one of our children
                $r = q("SELECT * FROM `user` WHERE `uid` = %d AND `parent-uid` = %d LIMIT 1",
                        intval($identity),
-                       dbesc($orig_record['uid'])
+                       DBA::escape($orig_record['uid'])
                );
 
                // Check if the target user is one of our siblings
                if (!DBA::isResult($r) && ($orig_record['parent-uid'] != 0)) {
                        $r = q("SELECT * FROM `user` WHERE `uid` = %d AND `parent-uid` = %d LIMIT 1",
                                intval($identity),
-                               dbesc($orig_record['parent-uid'])
+                               DBA::escape($orig_record['parent-uid'])
                        );
                }
 
@@ -132,7 +132,7 @@ function manage_content(App $a) {
                return;
        }
 
-       if ($_GET['identity']) {
+       if (!empty($_GET['identity'])) {
                $_POST['identity'] = $_GET['identity'];
                manage_post($a);
                return;
@@ -143,7 +143,7 @@ function manage_content(App $a) {
        //getting additinal information for each identity
        foreach ($identities as $key=>$id) {
                $thumb = q("SELECT `thumb` FROM `contact` WHERE `uid` = '%s' AND `self` = 1",
-                       dbesc($id['uid'])
+                       DBA::escape($id['uid'])
                );
 
                $identities[$key]['thumb'] = $thumb[0]['thumb'];