diff options
author | friendica <info@friendica.com> | 2013-02-19 23:41:42 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-19 23:41:42 -0800 |
commit | 0e9cf839d69f3e6039ec86f97b52174be9022ec5 (patch) | |
tree | a5009ba8f76d5eec71831f82861836906f5fd510 /include/dir_fns.php | |
parent | 7038ad2e5967e8f88341cede961c1efa3f910b15 (diff) | |
download | volse-hubzilla-0e9cf839d69f3e6039ec86f97b52174be9022ec5.tar.gz volse-hubzilla-0e9cf839d69f3e6039ec86f97b52174be9022ec5.tar.bz2 volse-hubzilla-0e9cf839d69f3e6039ec86f97b52174be9022ec5.zip |
fix localdir privacy (again)
Diffstat (limited to 'include/dir_fns.php')
-rw-r--r-- | include/dir_fns.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php index 2444e29ce..da74cc57f 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -41,6 +41,8 @@ function syncdirs($uid) { $hidden = (1 - intval($p[0]['publish'])); + logger('hidden: ' . $hidden); + $r = q("select xchan_flags from xchan where xchan_hash = '%s' limit 1", dbesc($p[0]['channel_hash']) ); @@ -52,10 +54,12 @@ function syncdirs($uid) { $new_flags = $r[0]['xchan_flags']; if($new_flags != $r[0]['xchan_flags']) { + $r = q("update xchan set xchan_flags = %d where xchan_hash = '%s' limit 1", intval($new_flags), - dbesc($xchan_hash) + dbesc($p[0]['channel_hash']) ); + } |