From 6532972e61a2aa5e8517ebcca3113adb3c8f336d Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 13 Oct 2016 00:30:41 -0700 Subject: additional array checking --- Zotlabs/Module/Profiles.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'Zotlabs/Module') diff --git a/Zotlabs/Module/Profiles.php b/Zotlabs/Module/Profiles.php index 6f76cd1cf..127304f92 100644 --- a/Zotlabs/Module/Profiles.php +++ b/Zotlabs/Module/Profiles.php @@ -117,13 +117,7 @@ class Profiles extends \Zotlabs\Web\Controller { $r1[0]['profile_name'] = dbesc($name); $r1[0]['profile_guid'] = dbesc(random_string()); - dbesc_array($r1[0]); - - $r2 = dbq("INSERT INTO profile (" . TQUOT - . implode(TQUOT . ", " . TQUOT, array_keys($r1[0])) - . TQUOT . ") VALUES ('" - . implode("', '", array_values($r1[0])) - . "')" ); + create_table_from_array('profile', $r1[0]); $r3 = q("SELECT id FROM profile WHERE uid = %d AND profile_name = '%s' LIMIT 1", intval(local_channel()), -- cgit v1.2.3