diff options
author | friendica <info@friendica.com> | 2014-09-11 18:11:07 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-11 18:11:07 -0700 |
commit | e68185fc05fadf71ee961513fc3dbdfafcfb86de (patch) | |
tree | e923675b96a3c0194784e218f8c744dc7ccc1d5e /include/zot.php | |
parent | 3a10956b20170a64de0a150c36bb24c46297ce42 (diff) | |
download | volse-hubzilla-e68185fc05fadf71ee961513fc3dbdfafcfb86de.tar.gz volse-hubzilla-e68185fc05fadf71ee961513fc3dbdfafcfb86de.tar.bz2 volse-hubzilla-e68185fc05fadf71ee961513fc3dbdfafcfb86de.zip |
don't allow an xchan to be imported with an empty name. To avoid translation issues we'll just make it '-'.
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php index f5099df8c..644d20ec2 100644 --- a/include/zot.php +++ b/include/zot.php @@ -722,7 +722,7 @@ function import_xchan($arr,$ud_flags = UPDATE_FLAGS_UPDATED, $ud_arr = null) { $r = q("update xchan set xchan_name = '%s', xchan_name_date = '%s', xchan_connurl = '%s', xchan_follow = '%s', xchan_connpage = '%s', xchan_flags = %d, xchan_addr = '%s', xchan_url = '%s' where xchan_hash = '%s' limit 1", - dbesc($arr['name']), + dbesc(($arr['name']) ? $arr['name'] : '-'), dbesc($arr['name_updated']), dbesc($arr['connections_url']), dbesc($arr['follow_url']), @@ -772,7 +772,7 @@ function import_xchan($arr,$ud_flags = UPDATE_FLAGS_UPDATED, $ud_arr = null) { dbesc($arr['connections_url']), dbesc($arr['follow_url']), dbesc($arr['connect_url']), - dbesc($arr['name']), + dbesc(($arr['name']) ? $arr['name'] : '-'), dbesc('zot'), dbesc($arr['photo_updated']), dbesc($arr['name_updated']), |