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:
Petr Škoda
2012-09-16 19:32:39 +02:00
parent c8ac480979
commit 88a119bb48
+2 -1
View File
@@ -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;