diff options
Diffstat (limited to 'Zotlabs/Module')
| -rw-r--r-- | Zotlabs/Module/Profiles.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Profiles.php b/Zotlabs/Module/Profiles.php index a51a56307..4ccec5b46 100644 --- a/Zotlabs/Module/Profiles.php +++ b/Zotlabs/Module/Profiles.php @@ -696,10 +696,9 @@ class Profiles extends \Zotlabs\Web\Controller { $show_presence = ['show_presence', t('Reveal my online status'), $show_presence_val, '', [t('No'), t('Yes')]]; } + $extra_fields = array(); $q = q("select * from profdef where true"); if($q) { - $extra_fields = array(); - foreach($q as $qq) { $mine = q("select v from profext where k = '%s' and hash = '%s' and channel_id = %d limit 1", dbesc($qq['field_name']), @@ -833,6 +832,8 @@ class Profiles extends \Zotlabs\Web\Controller { ); if($r) { + $profiles = ''; + $tpl = get_markup_template('profile_entry.tpl'); foreach($r as $rr) { $profiles .= replace_macros($tpl, array( |
