MDL-35465 remove invalid sql_empty() Oracle hack
This affects only the partially supported Oracle database, all other databases were not affected by this.
This commit is contained in:
+2
-1
@@ -42,7 +42,8 @@ function cohort_add_cohort($cohort) {
|
||||
$cohort->idnumber = NULL;
|
||||
}
|
||||
if (!isset($cohort->description)) {
|
||||
$cohort->description = $DB->sql_empty();
|
||||
// sql_empty() does not belong here, this crazy Oracle hack is implemented in insert_record()!
|
||||
$cohort->description = '';
|
||||
}
|
||||
if (!isset($cohort->descriptionformat)) {
|
||||
$cohort->descriptionformat = FORMAT_HTML;
|
||||
|
||||
Reference in New Issue
Block a user