aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profiles.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-13 14:42:54 -0800
committerfriendica <info@friendica.com>2015-01-13 14:42:54 -0800
commite528483d8150b1495e96de5309ed383a5fd6e09b (patch)
tree82530251317ddf9bdff63bbba0858fd55bd5946f /mod/profiles.php
parent2fc0d641393a56f056e50af65c82147a6a392f85 (diff)
downloadvolse-hubzilla-e528483d8150b1495e96de5309ed383a5fd6e09b.tar.gz
volse-hubzilla-e528483d8150b1495e96de5309ed383a5fd6e09b.tar.bz2
volse-hubzilla-e528483d8150b1495e96de5309ed383a5fd6e09b.zip
hide friends broken, add parameter for item search by verb
Diffstat (limited to 'mod/profiles.php')
-rw-r--r--mod/profiles.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index fa6a6e35c..a426b7aa1 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -296,7 +296,7 @@ function profiles_post(&$a) {
$work = fix_mce_lf(escape_tags(trim($_POST['work'])));
$education = fix_mce_lf(escape_tags(trim($_POST['education'])));
- $hide_friends = (($_POST['hide_friends'] == 1) ? 1: 0);
+ $hide_friends = ((intval($_POST['hide_friends'])) ? 1: 0);
$with = ((x($_POST,'with')) ? escape_tags(trim($_POST['with'])) : '');
@@ -605,7 +605,7 @@ function profiles_content(&$a) {
$opt_tpl = get_markup_template("profile_hide_friends.tpl");
$hide_friends = replace_macros($opt_tpl,array('$field' => array(
- 'hide-friends',
+ 'hide_friends',
t('Hide your contact/friend list from viewers of this profile?'),
$r[0]['hide_friends'],
'',