]> git.mjollnir.org Git - moodle.git/commitdiff
fomrat_string() tuning - memory, speed and accuracy in cron
authorskodak <skodak>
Sun, 4 Mar 2007 22:58:29 +0000 (22:58 +0000)
committerskodak <skodak>
Sun, 4 Mar 2007 22:58:29 +0000 (22:58 +0000)
lib/weblib.php

index 022004645e19dd217a71c7b9d0ed9e67e649dd43..b744cde317753b3d12b84d826a1576b4139ff09e 100644 (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;
     }