From c8cdcd7ca3d491759b8f7d233552ef211c4530ae Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 23 Jun 2008 14:25:38 +0000 Subject: Fix to icon upload git-svn-id: https://code.elgg.org/elgg/trunk@1061 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/actions/iconupload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/profile') diff --git a/mod/profile/actions/iconupload.php b/mod/profile/actions/iconupload.php index a4738a070..00e766c1c 100644 --- a/mod/profile/actions/iconupload.php +++ b/mod/profile/actions/iconupload.php @@ -44,8 +44,8 @@ $filehandler->write($tiny); $filehandler->close(); $filehandler->setFilename("profile/" . $_SESSION['user']->username . "master.jpg"); - $filehandler->open("master"); - $filehandler->write($tiny); + $filehandler->open("write"); + $filehandler->write($master); $filehandler->close(); $_SESSION['user']->icontime = time(); -- cgit v1.2.3