Merge branch 'w29_MDL-28384_m22_nullurl' of git://github.com/skodak/moodle
authorSam Hemelryk <sam@moodle.com>
Mon, 25 Jul 2011 02:14:29 +0000 (10:14 +0800)
committerSam Hemelryk <sam@moodle.com>
Mon, 25 Jul 2011 02:14:29 +0000 (10:14 +0800)
lib/datalib.php

index f4ba832..8aa1f84 100644 (file)
@@ -1662,6 +1662,8 @@ function add_to_log($courseid, $module, $action, $url='', $info='', $cm=0, $user
     $info = $info;
     if (!empty($url)) { // could break doing html_entity_decode on an empty var.
         $url = html_entity_decode($url);
+    } else {
+        $url = '';
     }
 
     // Restrict length of log lines to the space actually available in the