accesslib: get_user_access_bycontext() remove 2 unused var declarations (trivial)

This commit is contained in:
martinlanghoff
2007-09-19 07:49:35 +00:00
parent 55c47e48a9
commit 1dcf763428
-2
View File
@@ -1272,8 +1272,6 @@ function get_user_access_bycontext($userid, $context, $acc=NULL) {
// but the cost of re-fetching is minimal so we don't care.
// ... for now!
//
$targetpath;
$targetlevel;
if ($context->contextlevel === CONTEXT_COURSE) {
$targetpath = $context->path;
$targetlevel = $context->contextlevel;