1
1
Fork 0

missing thumbnail in new profiles

This commit is contained in:
Friendika 2011-01-02 14:26:23 -08:00
parent 4f796c68d2
commit c907c22eda

View file

@ -265,13 +265,14 @@ function profiles_content(&$a) {
dbesc($name), dbesc($name),
dbesc($r1[0]['name']), dbesc($r1[0]['name']),
dbesc($r1[0]['photo']), 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", $r3 = q("SELECT `id` FROM `profile` WHERE `uid` = %d AND `profile-name` = '%s' LIMIT 1",
intval(local_user()), intval(local_user()),
dbesc($name) dbesc($name)
); );
notice( t('New profile created.') . EOL); notice( t('New profile created.') . EOL);
if(count($r3) == 1) if(count($r3) == 1)
goaway($a->get_baseurl() . '/profiles/' . $r3[0]['id']); goaway($a->get_baseurl() . '/profiles/' . $r3[0]['id']);