Commit 98798830 authored by Steven Wittens's avatar Steven Wittens
Browse files

#12183: surpress php error on copy()

parent 6238bf44
......@@ -252,7 +252,7 @@ function file_copy(&$source, $dest = 0, $replace = FILE_EXISTS_RENAME) {
}
}
if (!copy($source, $dest)) {
if (!@copy($source, $dest)) {
drupal_set_message(t('File copy failed.'), 'error');
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment