]> git.mjollnir.org Git - moodle.git/commitdiff
I spent 2 hours looking for this typo :-D
authorskodak <skodak>
Tue, 5 Sep 2006 20:45:57 +0000 (20:45 +0000)
committerskodak <skodak>
Tue, 5 Sep 2006 20:45:57 +0000 (20:45 +0000)
lib/accesslib.php

index 1816143a0a2c89b80eeb4caaf950395e39e45d8e..d07096f2f9b5ce550077b104a2f1cfc3dcb5f1be 100755 (executable)
@@ -607,7 +607,7 @@ function load_user_capability($capability='', $context ='', $userid='') {
     // now we don't care about the huge array anymore, we can dispose it.
     unset($capabilities);
     
-    if (!empty($otheruseid)) {
+    if (!empty($otheruserid)) {
         return $usercap; // return the array  
     }
     // see array in session to see what it looks like