Prevent wrong data->notifications to be stored. Default to 0 if empty. MDL-14540 ; merged from 19_STABLE

This commit is contained in:
stronk7 2008-04-24 17:11:40 +00:00
parent 5a620a8c2a
commit 05ac14ca68

View file

@ -652,6 +652,10 @@ function data_update_instance($data) {
$data->assessed = 0;
}
if (empty($data->notification)) {
$data->notification = 0;
}
if (! update_record('data', $data)) {
return false;
}