fomrat_string() tuning - memory, speed and accuracy in cron; backported from HEAD

This commit is contained in:
skodak 2007-03-04 22:59:26 +00:00
parent 1b94c6e4b7
commit b8b21c5d2a

View file

@ -1419,7 +1419,7 @@ function format_string ($string, $striplinks = false, $courseid=NULL ) {
}
//init course id
if ($courseid === NULL) {
if (empty($courseid)) {
$courseid = $COURSE->id;
}