Commit ef28faf9 by pupi1985

Fix anonymous user images not being displayed

parent c2da0046
......@@ -650,9 +650,6 @@ if (QA_FINAL_EXTERNAL_USERS) {
if (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }
require_once QA_INCLUDE_DIR . 'app/format.php';
if (strlen($handle) == 0) {
return null;
}
$avatarSource = qa_get_user_avatar_source($flags, $email, $blobId);
......@@ -665,6 +662,9 @@ if (QA_FINAL_EXTERNAL_USERS) {
break;
case 'local-default':
$html = qa_get_avatar_blob_html(qa_opt('avatar_default_blobid'), qa_opt('avatar_default_width'), qa_opt('avatar_default_height'), $size, $padding);
if (strlen($handle) == 0) {
return $html;
}
break;
default: // NULL
return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment