Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
94ffa4a
)
Merge branch 'w29_MDL-28384_m22_nullurl' of git://github.com/skodak/moodle
author
Sam Hemelryk
<sam@moodle.com>
Mon, 25 Jul 2011 02:14:29 +0000
(10:14 +0800)
committer
Sam Hemelryk
<sam@moodle.com>
Mon, 25 Jul 2011 02:14:29 +0000
(10:14 +0800)
lib/datalib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/datalib.php
b/lib/datalib.php
index
f4ba832
..
8aa1f84
100644
(file)
--- a/
lib/datalib.php
+++ b/
lib/datalib.php
@@
-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