Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 7a5b1fc555b9ff3da907cdcd49fae1e7d0fd1e91 1 parent ea62bb7
authored July 18, 2005

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/datalib.php
2  lib/datalib.php
@@ -2678,7 +2678,7 @@ function add_to_log($courseid, $module, $action, $url='', $info='', $cm=0, $user
2678 2678
 
2679 2679
     global $db, $CFG, $USER;
2680 2680
 
2681  
-    if ($cm === '') { // postgres won't translate empty string to its default
  2681
+    if ($cm === '' || is_null($cm)) { // postgres won't translate empty string to its default
2682 2682
         $cm = 0;
2683 2683
     }
2684 2684
 

0 notes on commit 7a5b1fc

Please sign in to comment.
Something went wrong with that request. Please try again.