Permalink
Browse files

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

…oodle into MOODLE_21_STABLE
  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Jul 25, 2011
2 parents 6e48852 + 50ecbad commit b1591c656823ad7d49e1f88eb3d8e2223b32abfa
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 b1591c6

Please sign in to comment.