Prevent wrong data->notifications to be stored. Default to 0 if empty. MDL-14540

This commit is contained in:
stronk7
2008-04-24 17:10:03 +00:00
parent 6768c07ed1
commit d25fdffd6e
+4
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;
}