]> git.mjollnir.org Git - moodle.git/commitdiff
Fix typo. Merged from MOODLE_19_STABLE.
authortjhunt <tjhunt>
Thu, 25 Oct 2007 14:30:07 +0000 (14:30 +0000)
committertjhunt <tjhunt>
Thu, 25 Oct 2007 14:30:07 +0000 (14:30 +0000)
lib/datalib.php

index 45dda3439879e2d4f5f67d7021724652256263b1..7b21aeda5911ddc8d91a3f04a540c8ee6f56cd22 100644 (file)
@@ -1836,7 +1836,7 @@ function add_to_log($courseid, $module, $action, $url='', $info='', $cm=0, $user
         VALUES (' . "'$timenow', '$userid', '$courseid', '$REMOTE_ADDR', '$module', '$cm', '$action', '$url', '$info')");
 
     // MDL-11893, alert $CFG->supportemail if insert into log failed
-    if (!result && $CFG->supportemail) {
+    if (!$result && $CFG->supportemail) {
         $site = get_site();
         $subject = 'Insert into log failed at your moodle site '.$site->fullname;
         $message = 'Insert into log table failed at '.date('l dS \of F Y h:i:s A').'. It is possible that your disk is full.';