From: skodak Date: Thu, 20 Jul 2006 06:54:44 +0000 (+0000) Subject: fixed minor PHP5 compatibility problem with clone(); merged from MOODLE_16_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=57ea9c8fff9a938f3d0894f69595881a2210efc1;p=moodle.git fixed minor PHP5 compatibility problem with clone(); merged from MOODLE_16_STABLE --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index f552f212be..48f91b272f 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -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