From 820ef5cdbcd89b366c028da94af800ffb8c0f882 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Fri, 15 Nov 2013 15:55:57 +0800 Subject: [PATCH] MDL-42912 mod_glossary: Fix typo and call to core_text --- mod/glossary/sql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/glossary/sql.php b/mod/glossary/sql.php index e8bb6e23db0..0fa0b6e809a 100644 --- a/mod/glossary/sql.php +++ b/mod/glossary/sql.php @@ -114,7 +114,7 @@ $where = ''; $params['hookup'] = textlib::strtoupper($hook); - if ($hook != 'ALL' and $hook != 'SPECIAL' && ($hookstrlen = itextlib::strlen($hook))) { + if ($hook != 'ALL' and $hook != 'SPECIAL' and ($hookstrlen = textlib::strlen($hook))) { $where = "AND " . $DB->sql_substr("upper(concept)", 1, $hookstrlen) . " = :hookup"; } @@ -239,7 +239,7 @@ case 'letter': if ($hook != 'ALL' and $hook != 'SPECIAL' and ($hookstrlen = textlib::strlen($hook))) { - $params['hookup'] = core_text::strtoupper($hook); + $params['hookup'] = textlib::strtoupper($hook); $where = "AND " . $DB->sql_substr("upper(concept)", 1, $hookstrlen) . " = :hookup"; } if ($hook == 'SPECIAL') {