From c7a2b2c84f97af9d7983814f3b1e72a222c9f140 Mon Sep 17 00:00:00 2001 From: Jamie Pratt Date: Fri, 30 Apr 2010 06:20:19 +0000 Subject: [PATCH] MDL-22252 "couple of typos causing errors when importing glossary contents" --- mod/glossary/import.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/glossary/import.php b/mod/glossary/import.php index 37b44ca166f..f7098f745b1 100644 --- a/mod/glossary/import.php +++ b/mod/glossary/import.php @@ -227,7 +227,7 @@ if ($xml = glossary_read_imported_file($file['tmp_name']) ) { if ( $newentry->casesensitive ) { $dupentry = $DB->get_record("glossary_entries", array("concept"=>$newentry->concept, "glossaryid"=>$glossary->id)); } else { - $dupentry = $DB->get_record("glossary_entries", array("lower(concept)"=>moodle_strtolower($newentry->concept)), array("glossaryid"=>$glossary->id)); + $dupentry = $DB->get_record("glossary_entries", array("lower(concept)"=>moodle_strtolower($newentry->concept), "glossaryid"=>$glossary->id)); } if ($dupentry) { $permissiongranted = 0; @@ -294,7 +294,7 @@ if ($xml = glossary_read_imported_file($file['tmp_name']) ) { } if ( $category ) { // inserting the new relation - $entrycat = new opbject(); + $entrycat = new object(); $entrycat->entryid = $newentry->id; $entrycat->categoryid = $category->id; $DB->insert_record("glossary_entries_categories",$entrycat); -- 2.17.1