Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #4775 - Part 1/2 - Avatar warnings when editing user profile in… #4785

Merged
merged 2 commits into from Mar 22, 2024

Conversation

Eldenroot
Copy link
Contributor

@Eldenroot Eldenroot commented Jan 22, 2024

… admincp

#4775 - part 1/2

@@ -632,7 +632,7 @@
}
}
// Are we setting a new avatar from a URL?
else if($mybb->input['avatar_url'] && $mybb->input['avatar_url'] != $user['avatar'])
else if(isset($mybb->input['avatar_url']) && $mybb->input['avatar_url'] != $user['avatar'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this not trigger the code when an empty input is sent? If so, !empty(...) or $mybb->get_input(...) may be better

@dvz dvz merged commit b118341 into mybb:feature Mar 22, 2024
7 checks passed
@Eldenroot Eldenroot deleted the patch-33 branch March 22, 2024 21:09
dvz pushed a commit that referenced this pull request May 1, 2024
#4785)

* Fixes #4775 - Part 1/2 - Avatar warnings when editing user profile in admincp

* Update users.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants