aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-03 18:34:16 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-11-03 18:34:16 -0800
commite09b49288fa415c85d5ee1e77218c0b4c2b54a1d (patch)
treed21c82854d1dd0db719a0251019db2feb3e11b76 /include
parentc1cfcc78fef8674430a3c20cc083b318e18a3842 (diff)
downloadvolse-hubzilla-e09b49288fa415c85d5ee1e77218c0b4c2b54a1d.tar.gz
volse-hubzilla-e09b49288fa415c85d5ee1e77218c0b4c2b54a1d.tar.bz2
volse-hubzilla-e09b49288fa415c85d5ee1e77218c0b4c2b54a1d.zip
provide admin setting to change directory server
Diffstat (limited to 'include')
-rw-r--r--include/dir_fns.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php
index ecc5f6d96..e5f0e1e2b 100644
--- a/include/dir_fns.php
+++ b/include/dir_fns.php
@@ -190,8 +190,9 @@ function sync_directories($dirmode) {
intval($r[0]['site_valid'])
);
- $r = q("select * from site where (site_flags & %d) > 0 and site_url != '%s' and site_type = %d ",
- intval(DIRECTORY_MODE_PRIMARY|DIRECTORY_MODE_SECONDARY),
+ $r = q("select * from site where site_flags in (%d, %d) and site_url != '%s' and site_type = %d ",
+ intval(DIRECTORY_MODE_PRIMARY),
+ intval(DIRECTORY_MODE_SECONDARY),
dbesc(z_root()),
intval(SITE_TYPE_ZOT)
);