From: Mikael Nordfeldth Date: Tue, 10 Mar 2015 23:13:55 +0000 (+0100) Subject: Same as last commit, don't give ID if it's not for a File object X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6f76c8b59d04255b49e1c11b1d44478301c8437c;p=quix0rs-gnu-social.git Same as last commit, don't give ID if it's not for a File object --- diff --git a/classes/Avatar.php b/classes/Avatar.php index 420f384e13..3ef5d667c8 100644 --- a/classes/Avatar.php +++ b/classes/Avatar.php @@ -244,7 +244,7 @@ class Avatar extends Managed_DataObject $original = Avatar::getUploaded($target); - $imagefile = new ImageFile($target->id, Avatar::path($original->filename)); + $imagefile = new ImageFile(null, Avatar::path($original->filename)); $filename = $imagefile->resize($width); $scaled = clone($original);