From: skodak Date: Sun, 4 Mar 2007 22:58:29 +0000 (+0000) Subject: fomrat_string() tuning - memory, speed and accuracy in cron X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a97e0ccb378aa540a96d1d4090fd9f3d7693c849;p=moodle.git fomrat_string() tuning - memory, speed and accuracy in cron --- 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; }