function pre_updateInDB()
{
// Clean end alert if expire is after old one
if (isset($this->oldvalues['expire']) && $this->oldvalues['expire'] < $this->fields['expire']) {
$alert = new Alert();
$alert->clear($this->getType(), $this->fields['id'], Alert::END);
}
}