Skip to content

Commit 8f92e15

Browse files
committed
Gossary: complement to Fix load glossary from base course if not found in session - refs BT#22235 BT#22110
1 parent 3745aba commit 8f92e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/glossary.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public static function get_glossary_term_by_glossary_name($name)
115115
name LIKE '".Database::escape_string($glossaryName)."' OR
116116
name LIKE '".Database::escape_string($parsed)."'
117117
) AND
118-
session_id IS NULL
118+
(session_id IS NULL OR session_id = 0)
119119
LIMIT 1";
120120

121121
$rs = Database::query($sql);

0 commit comments

Comments
 (0)