From 245c2d4eed17a7c34c2b6d63f3db65b0f573b1f3 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 28 Sep 2016 18:37:05 -0700 Subject: issue #519 continued --- include/import.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/import.php') diff --git a/include/import.php b/include/import.php index 1d636bfbd..470ef982e 100644 --- a/include/import.php +++ b/include/import.php @@ -1106,8 +1106,11 @@ function sync_files($channel,$files) { // If the hash ever contains any escapable chars this could cause // problems. Currently it does not. - dbesc_array($att); + // @TODO implement os_path + if(!isset($att['os_path'])) + $att['os_path'] = ''; + dbesc_array($att); if($attach_exists) { logger('sync_files attach exists: ' . print_r($att,true), LOGGER_DEBUG); -- cgit v1.2.3