From 57ea9c8fff9a938f3d0894f69595881a2210efc1 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 20 Jul 2006 06:54:44 +0000 Subject: [PATCH] fixed minor PHP5 compatibility problem with clone(); merged from MOODLE_16_STABLE --- mod/forum/lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5