aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/dir_fns.php6
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'])
);
+
}