From fa0088a3e9a7a67d71dd2f0c08801744fbfdab32 Mon Sep 17 00:00:00 2001 From: flashwave Date: Fri, 5 Jun 2020 15:20:07 +0000 Subject: [PATCH] // oops! --- public/user-assets.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/user-assets.php b/public/user-assets.php index 89f9ca90..5fdfd375 100644 --- a/public/user-assets.php +++ b/public/user-assets.php @@ -40,7 +40,6 @@ switch($userAssetsMode) { if(!$userExists) break; - $isFound = true; $dimensions = MSZ_USER_AVATAR_RESOLUTION_DEFAULT; if(isset($_GET['r']) && is_string($_GET['r']) && ctype_digit($_GET['r'])) $dimensions = user_avatar_resolution_closest((int)$_GET['r']); @@ -58,9 +57,11 @@ switch($userAssetsMode) { $fileDisposition = sprintf('avatar-%d-%2$dx%2$d', $userId, $dimensions); if(is_file($avatarCropped)) { + $isFound = true; $filename = $avatarCropped; } else { if(is_file($avatarOriginal)) { + $isFound = true; try { mkdirs($avatarStorage, true);