Parcourir la source

! Fix for no avatar being left as a billy no-mates.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer il y a 10 ans
Parent
commit
de89f8cb80
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Sources/Profile-Modify.php

+ 1 - 1
Sources/Profile-Modify.php

@@ -2829,7 +2829,7 @@ function profileLoadAvatarData()
 
 	// Second level selected avatar...
 	$context['avatar_selected'] = substr(strrchr($context['member']['avatar']['server_pic'], '/'), 1);
-	return true;
+	return !empty($context['member']['avatar']['allow_server_stored']) || !empty($context['member']['avatar']['allow_external']) || !empty($context['member']['avatar']['allow_upload']);
 }
 
 /**