Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed when $cm is NULL, postgres still reports error. From HEAD

  • Loading branch information...
commit 9021f8168ae24875b4be5489f3cc39b83ef265a0 1 parent 1cfdb3c
patrickslee authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/datalib.php
View
2  lib/datalib.php
@@ -2692,7 +2692,7 @@ function add_to_log($courseid, $module, $action, $url='', $info='', $cm=0, $user
global $db, $CFG, $USER;
- if ($cm === '') { // postgres won't translate empty string to its default
+ if ($cm === '' || is_null($cm)) { // postgres won't translate empty string to its default
$cm = 0;
}
Please sign in to comment.
Something went wrong with that request. Please try again.