]> git.mjollnir.org Git - moodle.git/commitdiff
Removing debug error_log calls in uploadlib
authormjollnir_ <mjollnir_>
Thu, 27 Jan 2005 02:30:45 +0000 (02:30 +0000)
committermjollnir_ <mjollnir_>
Thu, 27 Jan 2005 02:30:45 +0000 (02:30 +0000)
lib/uploadlib.php

index 56850f8a91228db9b4978c6605e6456d9b178cbf..42dfdc42241b95ad8c791d01d7096d345f424de7 100644 (file)
@@ -751,20 +751,15 @@ function clam_change_log($oldpath, $newpath, $update=true) {
     global $CFG;
     
     if (!$record = get_record('log', 'info', $oldpath, 'module', 'upload')) {
-        error_log('couldn\'t find record');
         return false;
     }
     $record->info = $newpath;
     if ($update) {
-        if (update_record('log', $record)) {
-            error_log('updated record');
-        }
+        update_record('log', $record);
     }
     else {
         unset($record->id);
-        if (insert_record('log', $record)) {
-            error_log('inserted record');
-        }
+        insert_record('log', $record);
     }
 }
 ?>
\ No newline at end of file