aboutsummaryrefslogtreecommitdiffstats
path: root/include/import.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/import.php')
-rw-r--r--include/import.php5
1 files changed, 4 insertions, 1 deletions
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);