Prechádzať zdrojové kódy

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

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 rokov pred
rodič
commit
de89f8cb80
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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']);
 }
 
 /**