Selaa lähdekoodia

#3587 Cover and Profile Photo issue

RomanL 4 vuotta sitten
vanhempi
sitoutus
3b5f8af268

+ 2 - 2
modules/base/profile/classes/BxBaseModProfileUploaderCoverCrop.php

@@ -71,10 +71,10 @@ class BxBaseModProfileUploaderCoverCrop extends BxTemplUploaderCrop
         }
 
         if ('array' == $sFormat) {
-            return $a;
+            return $aResult;
         }
         else if ('json' == $sFormat) {
-            return json_encode($a);
+            return json_encode($aResult);
         } else { // html format is not suported for this data type
             return false;
         }

+ 2 - 2
modules/base/profile/classes/BxBaseModProfileUploaderPictureCrop.php

@@ -70,10 +70,10 @@ class BxBaseModProfileUploaderPictureCrop extends BxTemplUploaderCrop
         }
 
         if ('array' == $sFormat) {
-            return $a;
+            return $aResult;
         }
         else if ('json' == $sFormat) {
-            return json_encode($a);
+            return json_encode($aResult);
         } else { // html format is not suported for this data type
             return false;
         }