fix: Warning time error (#1283)

fix: Warning time error, refs #1283

* warnings.php
  * expires_period was accessed as numeric value, but is a string
* inc/datahandlers/warnings.php
  * improved handling of expiry for custom warning reasons
* inc/languages/english/datahandler_warnings.lang.php
  * added error message for invalid expires_period