Merge branch 'w29_MDL-28384_m22_nullurl' of git://github.com/skodak/moodle

This commit is contained in:
Sam Hemelryk 2011-07-25 10:14:29 +08:00
commit 1f70ee662e

View file

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