MyBB Community Forums
[F] Warning System - Ban time 1 Year [R] [C-Chris] - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: Archived Bug Reports (https://community.mybb.com/forum-74.html)
+------ Forum: MyBB 1.4.4 (https://community.mybb.com/forum-110.html)
+------ Thread: [F] Warning System - Ban time 1 Year [R] [C-Chris] (/thread-44091.html)



[F] Warning System - Ban time 1 Year [R] [C-Chris] - 144Neodym - 01-25-2009

Hi there :-)
By chance I found a small bug...
I was looking through the warnings.php because I thougt of some small changes and noticed that one year has only 265 days ;-)

if($year > 0)
{
   $time += 60*60*24*265*$year;
}

Lines 308-311

Best regards :-)


[F] Warning System - Ban time 1 Year [R] - Ryan Gordon - 01-26-2009

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