Skip to content

Commit

Permalink
MDL-14995 fixed param typo
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed May 27, 2008
1 parent 02ee7f3 commit 727c223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/accesslib.php
Expand Up @@ -3334,7 +3334,7 @@ function fetch_context_capabilities($context) {
$sql = "SELECT *
FROM {capabilities}
WHERE contextlevel = ".CONTEXT_MODULE." AND component = ?";
$params = "mod/$module->name";
$params = array("mod/$module->name");
break;

case CONTEXT_BLOCK: // block caps
Expand All @@ -3344,7 +3344,7 @@ function fetch_context_capabilities($context) {
$sql = "SELECT *
FROM {capabilities}
WHERE (contextlevel = ".CONTEXT_BLOCK." AND component = 'moodle') OR (component = ?)";
$params = "block/$block->name";
$params = array("block/$block->name");
break;

default:
Expand Down

0 comments on commit 727c223

Please sign in to comment.