pubsites broken and directory server admin selection includes known dead sites
This commit is contained in:
parent
6bd35ef740
commit
fefc2290a1
@ -206,7 +206,7 @@ class Site {
|
||||
// directory server should not be set or settable unless we are a directory client
|
||||
|
||||
if($dirmode == DIRECTORY_MODE_NORMAL) {
|
||||
$x = q("select site_url from site where site_flags in (%d,%d) and site_realm = '%s'",
|
||||
$x = q("select site_url from site where site_flags in (%d,%d) and site_realm = '%s' and site_dead = 0",
|
||||
intval(DIRECTORY_MODE_SECONDARY),
|
||||
intval(DIRECTORY_MODE_PRIMARY),
|
||||
dbesc($realm)
|
||||
|
@ -36,7 +36,8 @@ class Pubsites extends \Zotlabs\Web\Controller {
|
||||
$o .= '</tr>';
|
||||
if($j['sites']) {
|
||||
foreach($j['sites'] as $jj) {
|
||||
if(! \Zotlabs\Lib\System::compatible_project($jj['project']))
|
||||
$projectname = explode(' ',$jj['project']);
|
||||
if(! \Zotlabs\Lib\System::compatible_project($projectname[0]))
|
||||
continue;
|
||||
if(strpos($jj['version'],' ')) {
|
||||
$x = explode(' ', $jj['version']);
|
||||
|
Reference in New Issue
Block a user