From 88a119bb48a49e6c3556fbe90d60c5fba16a38e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Sun, 16 Sep 2012 19:32:39 +0200 Subject: [PATCH] MDL-35465 remove invalid sql_empty() Oracle hack This affects only the partially supported Oracle database, all other databases were not affected by this. --- cohort/lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cohort/lib.php b/cohort/lib.php index 67c2bf4c2f6..8cf15bba946 100644 --- a/cohort/lib.php +++ b/cohort/lib.php @@ -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;