fixed zero uid in imported contact photo
This commit is contained in:
parent
d090033a0a
commit
b294ff6302
1 changed files with 2 additions and 2 deletions
|
@ -297,13 +297,13 @@ function dfrn_confirm_post(&$a) {
|
||||||
|
|
||||||
$hash = hash('md5',uniqid(mt_rand(),true));
|
$hash = hash('md5',uniqid(mt_rand(),true));
|
||||||
|
|
||||||
$r = $img->store($local_uid, $contact_id, $hash, $filename, t('Contact Photos'), 4 );
|
$r = $img->store($uid, $contact_id, $hash, $filename, t('Contact Photos'), 4 );
|
||||||
|
|
||||||
if($r === false)
|
if($r === false)
|
||||||
$photo_failure = true;
|
$photo_failure = true;
|
||||||
$img->scaleImage(80);
|
$img->scaleImage(80);
|
||||||
|
|
||||||
$r = $img->store($local_uid, $contact_id, $hash, $filename, t('Contact Photos'), 5 );
|
$r = $img->store($uid, $contact_id, $hash, $filename, t('Contact Photos'), 5 );
|
||||||
|
|
||||||
if($r === false)
|
if($r === false)
|
||||||
$photo_failure = true;
|
$photo_failure = true;
|
||||||
|
|
Loading…
Reference in a new issue