Ver código fonte

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

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 anos atrás
pai
commit
de89f8cb80
1 arquivos alterados com 1 adições e 1 exclusões
  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']);
 }
 
 /**