]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ImageFile should not have an $id set if not a File
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 10 Mar 2015 22:52:50 +0000 (23:52 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 10 Mar 2015 22:52:50 +0000 (23:52 +0100)
classes/Profile.php

index a944d5b4d23f5768c6d4ffcd4ade2b21b61b79a8..db8326f0f6959dbd090e39dda6ef7bfe1f77e60e 100644 (file)
@@ -160,7 +160,7 @@ class Profile extends Managed_DataObject
             return $this->getGroup()->setOriginal($filename);
         }
 
-        $imagefile = new ImageFile($this->id, Avatar::path($filename));
+        $imagefile = new ImageFile(null, Avatar::path($filename));
 
         $avatar = new Avatar();
         $avatar->profile_id = $this->id;