From 7b90b0dfd937c17eac61d6a1ca0f0619a3f4cdfd Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 22 Sep 2016 17:08:16 -0700 Subject: issue #526 --- include/import.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/import.php') diff --git a/include/import.php b/include/import.php index ddffb2ac3..15aa7c2b3 100644 --- a/include/import.php +++ b/include/import.php @@ -1217,6 +1217,9 @@ function sync_files($channel,$files) { $p['content'] = base64_decode($p['content']); + if(!isset($p['display_path'])) + $p['display_path'] = ''; + $exists = q("select * from photo where resource_id = '%s' and imgscale = %d and uid = %d limit 1", dbesc($p['resource_id']), intval($p['imgscale']), -- cgit v1.2.3