From a97e0ccb378aa540a96d1d4090fd9f3d7693c849 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 4 Mar 2007 22:58:29 +0000 Subject: [PATCH] fomrat_string() tuning - memory, speed and accuracy in cron --- lib/weblib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 022004645e..b744cde317 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; } -- 2.39.5