]> git.mjollnir.org Git - moodle.git/commit
accesslib: Fix get_context_users_bycap() when no roles grant the cap
authormartinlanghoff <martinlanghoff>
Fri, 25 Jan 2008 00:53:01 +0000 (00:53 +0000)
committermartinlanghoff <martinlanghoff>
Fri, 25 Jan 2008 00:53:01 +0000 (00:53 +0000)
commitc2d88da70873808949d88eaed42e80012452bd9d
tree37b90a00342f79950b40a4012f336854c357f502
parentc648a2259c06c32e1d2bdca3ccd3969e1a4facf2
accesslib: Fix get_context_users_bycap() when no roles grant the cap

When no roles mention the capability, get_context_users_bycap() breaks
badly. This trivial patch does a sanity check before jumping into the
SQL shark-pool...

MDL-13160
lib/accesslib.php