Commit 88e32f15 authored by jcnventura's avatar jcnventura

Issue #1056832 by pillarsdotnet: Object of class stdClass could not be...

Issue #1056832 by pillarsdotnet: Object of class stdClass could not be converted to string in file_uri_scheme()
parent 367f28b6
......@@ -174,7 +174,7 @@ function _print_main_settings_validate($form, &$form_state) {
// The image was saved using file_save_upload() and was added to the
// files table as a temporary file. We'll make a copy and let the garbage
// collector delete the original upload.
if (file_unmanaged_copy($file, $filename, FILE_EXISTS_REPLACE)) {
if (file_unmanaged_copy($file->filename, $filename, FILE_EXISTS_REPLACE)) {
$form_state['values']['print_logo_options'] = 2;
$form_state['values']['print_logo_url'] = base_path() . $file->filepath;
}
......
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