From 88411fb1ca0455bb0859359ae3b742468ef4bf9f Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 10 Mar 2015 23:52:50 +0100 Subject: [PATCH] ImageFile should not have an $id set if not a File --- classes/Profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Profile.php b/classes/Profile.php index a944d5b4d2..db8326f0f6 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -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; -- 2.39.5