Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 7a5b1fc555b9ff3da907cdcd49fae1e7d0fd1e91 1 parent ea62bb7
patrickslee authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/datalib.php
2  lib/datalib.php
View
@@ -2678,7 +2678,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.