aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/profile/actions/iconupload.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/profile/actions/iconupload.php b/mod/profile/actions/iconupload.php
index bdb925838..10a55be1c 100644
--- a/mod/profile/actions/iconupload.php
+++ b/mod/profile/actions/iconupload.php
@@ -13,11 +13,12 @@
// If we were given a correct icon
if (
isloggedin()
- && $small = get_resized_image_from_uploaded_file('profileicon',50,50)
- && $medium = get_resized_image_from_uploaded_file('profileicon',100,100)
- && $large = get_resized_image_from_uploaded_file('profileicon',200,200)
) {
+ $small = get_resized_image_from_uploaded_file('profileicon',50,50);
+ $medium = get_resized_image_from_uploaded_file('profileicon',100,100);
+ $large = get_resized_image_from_uploaded_file('profileicon',300,300);
+
$filehandler = new ElggFile();
$filehandler->setFilename($_SESSION['user']->username . "large.jpg");
$filehandler->open("write");