aboutsummaryrefslogtreecommitdiffstats
path: root/include/import.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-13 00:30:41 -0700
committerzotlabs <mike@macgirvin.com>2016-10-13 00:30:41 -0700
commit6532972e61a2aa5e8517ebcca3113adb3c8f336d (patch)
tree1bb8dba43eee1c57746987aee05814d135235a2f /include/import.php
parent48026efddfdf063fad7c7bd7a86dd7fc4ca4a0a7 (diff)
downloadvolse-hubzilla-6532972e61a2aa5e8517ebcca3113adb3c8f336d.tar.gz
volse-hubzilla-6532972e61a2aa5e8517ebcca3113adb3c8f336d.tar.bz2
volse-hubzilla-6532972e61a2aa5e8517ebcca3113adb3c8f336d.zip
additional array checking
Diffstat (limited to 'include/import.php')
-rw-r--r--include/import.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/import.php b/include/import.php
index 4225fe493..d5f6e5c8a 100644
--- a/include/import.php
+++ b/include/import.php
@@ -1026,7 +1026,8 @@ function sync_files($channel,$files) {
if($attach_exists) {
logger('sync_files attach exists: ' . print_r($att,true), LOGGER_DEBUG);
- dbesc_array($att);
+ if(! dbesc_array($att))
+ continue;
$str = '';
foreach($att as $k => $v) {
if($str)
@@ -1140,7 +1141,8 @@ function sync_files($channel,$files) {
if($exists) {
- dbesc_array($p);
+ if(! dbesc_array($p))
+ continue;
$str = '';
foreach($p as $k => $v) {
if($str)