aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/import.php1
-rw-r--r--include/zot.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/import.php b/include/import.php
index 5a655ce4c..a6d738e52 100644
--- a/include/import.php
+++ b/include/import.php
@@ -156,6 +156,7 @@ function import_profiles($channel, $profiles) {
unset($profile['id']);
$profile['aid'] = get_account_id();
$profile['uid'] = $channel['channel_id'];
+ unset($profile['profile_vcard']);
convert_oldfields($profile,'name','fullname');
convert_oldfields($profile,'with','partner');
diff --git a/include/zot.php b/include/zot.php
index 8e3d03ad8..18960db46 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -4152,7 +4152,7 @@ function zotinfo($arr) {
if($role === 'forum' || $role === 'repository') {
$public_forum = true;
}
- else {
+ elseif($ztarget_hash) {
// check if it has characteristics of a public forum based on custom permissions.
$m = \Zotlabs\Access\Permissions::FilledAutoperms($e['channel_id']);
if($m) {