MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup
This commit is contained in:
@@ -248,10 +248,7 @@
|
||||
}
|
||||
$newitem->required = intval($item['@']['REQUIRED']);
|
||||
$newitem->position = $position;
|
||||
if (!$DB->insert_record('feedback_item', $newitem)) {
|
||||
$error->stat = false;
|
||||
$error->msg[] = 'item ('.$newitem->name.') not imported';
|
||||
}
|
||||
$DB->insert_record('feedback_item', $newitem);
|
||||
}
|
||||
return $error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user