MDL-21655 "big scary enrolment and roles improvements" fixed a typo in previous check...
authorJamie Pratt <me@jamiep.org>
Wed, 5 May 2010 08:45:45 +0000 (08:45 +0000)
committerJamie Pratt <me@jamiep.org>
Wed, 5 May 2010 08:45:45 +0000 (08:45 +0000)
mod/forum/post.php

index 3d107d8..4141ccd 100644 (file)
@@ -174,7 +174,7 @@ if (!empty($forum)) {      // User is starting a new discussion in a forum
     $modcontext    = get_context_instance(CONTEXT_MODULE, $cm->id);
 
     if (! forum_user_can_post($forum, $discussion, $USER, $cm, $course, $modcontext)) {
-        if (!isguestuser) {
+        if (!isguestuser()) {
             if (!is_enrolled($coursecontext)) {  // User is a guest here!
                 $SESSION->wantsurl = $FULLME;
                 $SESSION->enrolcancel = $_SERVER['HTTP_REFERER'];