From b8b21c5d2a3547ff580f230ccce9dd7aff7633e5 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 4 Mar 2007 22:59:26 +0000 Subject: [PATCH] fomrat_string() tuning - memory, speed and accuracy in cron; backported from HEAD --- lib/weblib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 022004645e1..b744cde3177 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1419,7 +1419,7 @@ function format_string ($string, $striplinks = false, $courseid=NULL ) { } //init course id - if ($courseid === NULL) { + if (empty($courseid)) { $courseid = $COURSE->id; }