]> git.mxchange.org Git - friendica.git/commitdiff
fixed zero uid in imported contact photo
authorMike Macgirvin <mike@macgirvin.com>
Thu, 5 Aug 2010 03:11:14 +0000 (20:11 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Thu, 5 Aug 2010 03:11:14 +0000 (20:11 -0700)
mod/dfrn_confirm.php

index 263c88f6772d9e77a0abae09c113c3d50b5c40e8..a8a4b3b99cf3c9f734665fe0b7a18531e8780d1b 100644 (file)
@@ -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;