From 729d325004771cd3afc09278f9155f10b5bcc736 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Tue, 1 Mar 2005 23:38:51 +0000 Subject: [PATCH] Changing a require to a require_once in forum postgres upgrade (was getting included twice) --- mod/forum/db/postgres7.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/forum/db/postgres7.php b/mod/forum/db/postgres7.php index f4903c8f71c..c34bdabe4c2 100644 --- a/mod/forum/db/postgres7.php +++ b/mod/forum/db/postgres7.php @@ -118,7 +118,7 @@ function forum_upgrade($oldversion) { /// Enter initial read records for all posts older than 1 day. - require $CFG->dirroot.'/mod/forum/lib.php'; + require_once($CFG->dirroot.'/mod/forum/lib.php'); /// Timestamp for old posts (and therefore considered read). $dateafter = time() - ($CFG->forum_oldpostdays*24*60*60); /// Timestamp for one day ago.