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. From HEAD

  • Loading branch information...
commit 9021f8168ae24875b4be5489f3cc39b83ef265a0 1 parent 1cfdb3c
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
@@ -2692,7 +2692,7 @@ function add_to_log($courseid, $module, $action, $url='', $info='', $cm=0, $user
2692 2692
 
2693 2693
     global $db, $CFG, $USER;
2694 2694
 
2695  
-    if ($cm === '') { // postgres won't translate empty string to its default
  2695
+    if ($cm === '' || is_null($cm)) { // postgres won't translate empty string to its default
2696 2696
         $cm = 0;
2697 2697
     }
2698 2698
 

0 notes on commit 9021f81

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