瀏覽代碼

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

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 年之前
父節點
當前提交
de89f8cb80
共有 1 個文件被更改,包括 1 次插入1 次删除
  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']);
 }
 
 /**