additional array checking

This commit is contained in:
zotlabs
2016-10-13 00:30:41 -07:00
parent 48026efddf
commit 6532972e61
5 changed files with 27 additions and 14 deletions

View File

@@ -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)