aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-11 18:11:07 -0700
committerfriendica <info@friendica.com>2014-09-11 18:11:07 -0700
commite68185fc05fadf71ee961513fc3dbdfafcfb86de (patch)
treee923675b96a3c0194784e218f8c744dc7ccc1d5e /include
parent3a10956b20170a64de0a150c36bb24c46297ce42 (diff)
downloadvolse-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')
-rw-r--r--include/zot.php4
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']),