Skip to content
Permalink
Browse files

NOBUG: Fix some queries preventing showentry "popup" to work

  • Loading branch information...
stronk7 committed Jun 4, 2010
1 parent bbdfd8c commit 2e300e139a836a58692e68f370890db0e4d68d80
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/glossary/lib.php
  2. +1 −1 mod/glossary/showentry.php
@@ -787,7 +787,7 @@ function glossary_get_entries_search($concept, $courseid) {
e.glossaryid = g.id AND
( (e.casesensitive != 0 AND LOWER(concept) = :conceptlower) OR
(e.casesensitive = 0 and concept = :concept)) AND
(g.course = courseid2 OR g.globalglossary = 1) AND
(g.course = :courseid2 OR g.globalglossary = 1) AND
e.usedynalink != 0 AND
g.usedynalink != 0", $params);
}
@@ -43,7 +43,7 @@
foreach ($entries as $key => $entry) {
// Need to get the course where the entry is,
// in order to check for visibility/approve permissions there
$entrycourse = $DB->get_record('course', array('id', $entry->courseid), '*', MUST_EXIST);
$entrycourse = $DB->get_record('course', array('id' => $entry->courseid), '*', MUST_EXIST);
$modinfo = get_fast_modinfo($entrycourse);
// make sure the entry is visible
if (empty($modinfo->cms[$entry->cmid]->uservisible)) {

0 comments on commit 2e300e1

Please sign in to comment.
You can’t perform that action at this time.