Skip to content

Commit

Permalink
Fixing typo that led to fatal SQL error
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav_delius committed Oct 16, 2007
1 parent 516c425 commit e19c5c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/accesslib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4159,7 +4159,7 @@ function get_users_by_capability($context, $capability, $fields='', $sort='',
if (!empty($CFG->defaultfrontpageroleid) && ($context->id == $frontpagectx->id || strstr($context->path, '/'.$frontpagectx->id.'/'))) { if (!empty($CFG->defaultfrontpageroleid) && ($context->id == $frontpagectx->id || strstr($context->path, '/'.$frontpagectx->id.'/'))) {
$roles = get_roles_with_capability($capability, CAP_ALLOW, $context); $roles = get_roles_with_capability($capability, CAP_ALLOW, $context);
if (in_array($CFG->defaultfrontpageroleid, array_keys($roles))) { if (in_array($CFG->defaultfrontpageroleid, array_keys($roles))) {
return get_records_sql("SELECT $fields FROM {$CFG->prefix}user ORDER BY $sort, $limitfrom, $limitnum"); return get_records_sql("SELECT $fields FROM {$CFG->prefix}user ORDER BY $sort", $limitfrom, $limitnum);
} }
} }


Expand Down

0 comments on commit e19c5c1

Please sign in to comment.