Browse files

no return necessary after exception thrown

  • Loading branch information...
1 parent 68f94e2 commit 090b95864142b38810b5762b638ccbd35c2f9106 @skodak skodak committed Nov 11, 2010
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/accesslib.php
View
1 lib/accesslib.php
@@ -2610,7 +2610,6 @@ function role_assign($roleid, $userid, $contextid, $component = '', $itemid = 0,
if (!$DB->record_exists('user', array('id'=>$userid, 'deleted'=>0))) {
throw new coding_exception('User ID does not exist or is deleted!', 'userid:'.$userid);
- return false;
}
$context = get_context_instance_by_id($contextid, MUST_EXIST);

0 comments on commit 090b958

Please sign in to comment.