Permalink
Browse files

MDL-28384 convert empty log urls to ''

The problem is that the log table does not allow nulls, credit goes to Troy Williams.
  • Loading branch information...
1 parent aede1fe commit 50ecbad305903610498aa54228c6576597702fa5 @skodak skodak committed Jul 24, 2011
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 50ecbad

Please sign in to comment.