Fixed need range check for warning expiry dates

Jake Bunce

Well-known member

You can get an error like this if you enter too large a value for the expiration when issuing a warning (e.g. 100 years):

Mysqli statement execute error : Out of range value for column 'expiry_date' at row 1

Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 317
Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
Zend_Db_Adapter_Abstract->insert() in XenForo/DataWriter.php at line 1591
XenForo_DataWriter->_insert() in XenForo/DataWriter.php at line 1580
XenForo_DataWriter->_save() in XenForo/DataWriter.php at line 1381
XenForo_DataWriter->save() in XenForo/ControllerPublic/Member.php at line 707
XenForo_ControllerPublic_Member->actionWarn() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in /home/mscclan/public_html/testxf11x/index.php at line 13
Top Bottom