MyBB Community Forums

Full Version: Useless codes in member.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
in member.php line 863/870 is Unless because there are this codes in line 847/854.
				$validator_extra .= "
				$(\"#{$id}\").rules(\"add\", {
					required: true,
					minlength: 1,
					messages: {
						required: \"{$lang->js_validator_not_empty}\"
					}
				});\n";

And {$id} doesn't exist.
Anybody from mybb team to confirm this?
I can confirm it. But $id might exist if it's a required field. Still, it's duplicate code.
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/945

Thanks for contributing to MyBB!

Regards,
The MyBB Group
Thanks.