From: Mike Macgirvin Date: Thu, 5 Aug 2010 03:11:14 +0000 (-0700) Subject: fixed zero uid in imported contact photo X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b294ff63024da5629a0d7b6f66aaa9af6d1dd400;p=friendica.git fixed zero uid in imported contact photo --- diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 263c88f677..a8a4b3b99c 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -297,13 +297,13 @@ function dfrn_confirm_post(&$a) { $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) $photo_failure = true; $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) $photo_failure = true;