]> git.mjollnir.org Git - moodle.git/commitdiff
fixed minor PHP5 compatibility problem with clone(); merged from MOODLE_16_STABLE
authorskodak <skodak>
Thu, 20 Jul 2006 06:54:44 +0000 (06:54 +0000)
committerskodak <skodak>
Thu, 20 Jul 2006 06:54:44 +0000 (06:54 +0000)
mod/forum/lib.php

index f552f212be59a476ac6e979d5fd440c8eacb0af9..48f91b272ff87e2fc832044babdd035e7ebe2aa5 100644 (file)
@@ -244,7 +244,9 @@ function forum_cron () {
     }
 
     if (!empty($USER->id)) { // Remember real USER account if necessary
-        $realuser = $USER;
+        $realuser = clone($USER); //PHP5 compatibility
+    } else {
+        $realuser = false;
     }
 
     /// Posts older than 2 days will not be mailed.  This is to avoid the problem where