]> git.mjollnir.org Git - moodle.git/commitdiff
accesslib: get_user_access_bycontext() remove 2 unused var declarations (trivial)
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:49:35 +0000 (07:49 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:49:35 +0000 (07:49 +0000)
lib/accesslib.php

index b6fb2412f924b0876bce247c55ea42111ca1ae8e..8127a51a6e9e6f4118be689fa1ee360a05225a9a 100755 (executable)
@@ -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;