Insert zero into fires_min an fires_max when null

Former-commit-id: de1197159053155d4f962d74179933c46189460e
This commit is contained in:
Luis Calvo 2019-04-01 12:56:10 +02:00
parent 2d26a74f9e
commit c07319fb70
1 changed files with 7 additions and 0 deletions

View File

@ -8794,7 +8794,14 @@ function api_set_alert_actions($id, $id2, $other, $trash1)
} }
$firesMin = $other['data'][2]; $firesMin = $other['data'][2];
if (!$firesMin) {
$firesMin = 0;
}
$firesMax = $other['data'][3]; $firesMax = $other['data'][3];
if (!$firesMax) {
$firesMax = 0;
}
$values = [ $values = [
'id_alert_template_module' => $idAlertTemplateModule, 'id_alert_template_module' => $idAlertTemplateModule,