Skip empty domains in iSchedule setup page

This commit is contained in:
Rob Ostensen 2012-03-11 20:29:14 -05:00 committed by Andrew McMillan
parent f47ad7b669
commit 6ee0df101e

View File

@ -86,6 +86,8 @@ include("classBrowser.php");
function SRVOk ( $value, $name, $row ) {
global $BrowserCurrentRow;
if ( $BrowserCurrentRow->domain = '' )
return ''; // skip empty rows
$s = new iSchedule();
$s->domain = $BrowserCurrentRow->domain;
return translate( ( $s->getServer()?'OK': SRVFormat ( $s->domain ) ) );