MyBB Community Forums

Full Version: [F] Edit ban by Akismet [C-Michael83]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If a user is banned by Akismet, if you go to edit the ban in the ACP, the time option selected is 1 day, not permanent, which is what the length actually is. People may edit the reason and not realise the length has also changed. Seems to show the correct length when editing in the MCP. Only tested on 1.4.4
Fix. Find in admin / modules / user / banning.php

if($time != "---")

replace with

if($time != "---" && $time != 'perm')
I replaced both occurrences of if($time != "---") with the replacement and it's still saying 1 day instead of permanent when you go to edit it. May be linked to something else though that I've noticed but I'll have to look at that again tomorrow.
Nope, still says one day when you edit it.

[attachment=12796]

Just to confirm, this is when a user is banned permanently by Akismet and you edit the ban in the ACP banning page.
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group