don't allow an xchan to be imported with an empty name. To avoid translation issues we'll just make it '-'.
This commit is contained in:
parent
3a10956b20
commit
e68185fc05
@ -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']),
|
||||
|
Reference in New Issue
Block a user