diff options
-rw-r--r-- | mod/profile/actions/iconupload.php | 4 |
1 files changed, 2 insertions, 2 deletions
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();
|