From: Friendika <info@friendika.com>
Date: Sun, 2 Jan 2011 22:26:23 +0000 (-0800)
Subject: missing thumbnail in new profiles
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c907c22edac95552958c7c070cd77420b032e9d0;p=friendica.git

missing thumbnail in new profiles
---

diff --git a/mod/profiles.php b/mod/profiles.php
index e99e0f288c..1c75dc0eb1 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -265,13 +265,14 @@ function profiles_content(&$a) {
 			dbesc($name),
 			dbesc($r1[0]['name']),
 			dbesc($r1[0]['photo']),
-			dbesc($ra[0]['thumb'])
+			dbesc($r1[0]['thumb'])
 		);
 
 		$r3 = q("SELECT `id` FROM `profile` WHERE `uid` = %d AND `profile-name` = '%s' LIMIT 1",
 			intval(local_user()),
 			dbesc($name)
 		);
+
 		notice( t('New profile created.') . EOL);
 		if(count($r3) == 1)
 			goaway($a->get_baseurl() . '/profiles/' . $r3[0]['id']);