]> git.mxchange.org Git - friendica.git/blobdiff - mod/profiles.php
Merge pull request #3865 from annando/noscrape-last-active
[friendica.git] / mod / profiles.php
index 42f458756338bb21235f7d938f788241810e73ab..4a1d1ad93479033342ec504ff7cfa949b3f0ce78 100644 (file)
@@ -108,13 +108,7 @@ function profiles_init(App $a) {
                $r1[0]['net-publish'] = 0;
                $r1[0]['profile-name'] = dbesc($name);
 
-               dbm::esc_array($r1[0], true);
-
-               $r2 = dbq("INSERT INTO `profile` (`"
-                       . implode("`, `", array_keys($r1[0]))
-                       . "`) VALUES ("
-                       . implode(", ", array_values($r1[0]))
-                       . ")" );
+               dba::insert('profile', $r1[0]);
 
                $r3 = q("SELECT `id` FROM `profile` WHERE `uid` = %d AND `profile-name` = '%s' LIMIT 1",
                        intval(local_user()),