Quickfind List
Maintained by
Mark Johnson, Ray Morris
Quick Find List Block for Moodle
This block allows quick searching of users from a block, and displays a configurable link for
each search result
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
AND pagetypepattern = "?"
should be:
AND pagetypepattern = ?
The whole point of bound parameters is that you don't quote them, and therefore need not worry about embedded quotes, SQL injection, etc.
Also the quotes are incorrect. Double quotes in the SQL may work for some version of some database, but correct SQL is single quote. Therefore:
$where = "WHERE name = 'quickfindlist'
AND pagetypepattern = ?
AND parentcontextid = ?
AND bi.id < ?";
Strict Standards: Creating default object from empty value in /home/garderief/public_html/blocks/quickfindlist/block_quickfindlist.php on line 201
The way we have Moodle set up, all staff have a system role called "Staff", which has permissions like quickfindlist:use. Until the issue is resolved, this could be a possible workaround.