diff options
author | friendica <info@friendica.com> | 2014-08-17 19:06:56 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-08-17 19:06:56 -0700 |
commit | 4a76925787672ede57e0d36c890ffb08b6d32ed4 (patch) | |
tree | e61d21fbde2020027fd0c9dd132c0cb8f998d262 /mod/sitelist.php | |
parent | de1198ccfe113c848482ba0ba21bc9f24caca8a8 (diff) | |
download | volse-hubzilla-4a76925787672ede57e0d36c890ffb08b6d32ed4.tar.gz volse-hubzilla-4a76925787672ede57e0d36c890ffb08b6d32ed4.tar.bz2 volse-hubzilla-4a76925787672ede57e0d36c890ffb08b6d32ed4.zip |
some more work on realms
Diffstat (limited to 'mod/sitelist.php')
-rw-r--r-- | mod/sitelist.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/sitelist.php b/mod/sitelist.php index 1e6d0fcfb..95cf862df 100644 --- a/mod/sitelist.php +++ b/mod/sitelist.php @@ -18,6 +18,12 @@ function sitelist_init(&$a) { if($open) $sql_extra = " and site_register = " . intval(REGISTER_OPEN) . " "; + $realm = get_directory_realm(); + if($realm == DIRECTORY_REALM) { + $sql_extra .= " and ( site_realm = '" . dbesc($realm) . "' or site_realm = '') "; + } + else + $sql_extra .= " and site_realm = '" . dbesc($realm) . "' "; $result = array('success' => false); |