mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Removing debug error_log calls in uploadlib
This commit is contained in:
parent
d5838a4b20
commit
f8688e0f37
1 changed files with 2 additions and 7 deletions
|
@ -751,20 +751,15 @@ function clam_change_log($oldpath, $newpath, $update=true) {
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
if (!$record = get_record('log', 'info', $oldpath, 'module', 'upload')) {
|
if (!$record = get_record('log', 'info', $oldpath, 'module', 'upload')) {
|
||||||
error_log('couldn\'t find record');
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$record->info = $newpath;
|
$record->info = $newpath;
|
||||||
if ($update) {
|
if ($update) {
|
||||||
if (update_record('log', $record)) {
|
update_record('log', $record);
|
||||||
error_log('updated record');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
unset($record->id);
|
unset($record->id);
|
||||||
if (insert_record('log', $record)) {
|
insert_record('log', $record);
|
||||||
error_log('inserted record');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Add table
Add a link
Reference in a new issue