While fixing some typos in some queries in the glossary, these have been detected:
1) Notice: Undefined property: stdClass::$rating in C:\xampp\xampp\htdocs\moodle\moodle\mod\glossary\lib.php on line 1097. Not sure how this has changed from 1.9 ratings, please review if that must be filled with anything or, simply, one empty() check is enough.
2) Glossary entries aren't showed in popups anymore, but the close button remains. Should be enforce popus for them (yes I know the XHTML thing, but there are ways in JS) or should we delete the button forever. Plz, discuss this with MD.