Permalink
Browse files

Merge branch 'w29_MDL-28384_m20_nullurl' of git://github.com/skodak/m…

…oodle into MOODLE_20_STABLE
  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Jul 25, 2011
2 parents 9a8343c + 3687ab7 commit f6fc3616de8cedddfa6e9ddccf2344c0037b778c
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/datalib.php
View
@@ -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

0 comments on commit f6fc361

Please sign in to comment.