diff --git a/block_hshcourselist.php b/block_hshcourselist.php index cbe32b9ee7c2a898d6f3aa95d9d3616386bac1e0..0773f22b98933a6fed95ebf9025ae6c0e4695742 100644 --- a/block_hshcourselist.php +++ b/block_hshcourselist.php @@ -203,7 +203,7 @@ class block_hshcourselist extends block_base { $params = array_merge($params, $keywordArray); $where .= 'fullname ILIKE ?'; for ($i = 0; $i <= count($keywordArray)-2; $i++) { - $where .= ' AND fullname ILIKE ?'; + $where .= ' AND fullname ILIKE ? OR shortname ILIKE ?'; } } }