MDL-38147 added comments for SQL-based course search that might not work on some DB
MDL-38147 fixed bug with windows PHP different function behaviour