A more robust way of checking empty.

This commit is contained in:
Andrew McMillan 2012-03-12 14:55:52 +13:00
parent 14c695c45a
commit 092cef63ca

View File

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