# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: moodle/mod/forum/lib.php --- moodle/mod/forum/lib.php Base (1.954.2.4) +++ moodle/mod/forum/lib.php Locally Modified (Based On 1.954.2.4) @@ -540,6 +540,10 @@ continue; } + if($userfrom->id==$userto->id){ + continue; + } + //if we want to check that userto and userfrom are not the same person this is probably the spot to do it // setup global $COURSE properly - needed for roles and languages @@ -876,6 +880,10 @@ continue; } + if($userfrom->id==$userto->id){ + continue; + } + if (!isset($userfrom->groups[$forum->id])) { if (!isset($userfrom->groups)) { $userfrom->groups = array();