Make check for URL more explicit

This commit is contained in:
phl0 2016-08-01 18:04:55 +02:00
parent d885444f95
commit e8a19b40dd
No known key found for this signature in database
GPG Key ID: 48EA1E640798CA9A
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ for ($i=0;$i<$Reflector->PeerCount();$i++) {
$URL = $XML->GetElement($Reflectors[$j], "dashboardurl");
}
}
if ($Result && $URL) {
if ($Result && (trim($URL) != "")) {
echo '
<td><a href="'.$URL.'" target="_blank" class="listinglink" title="Visit the Dashboard of&nbsp;'.$Name.'" style="text-decoration:none;color:#000000;">'.$Name.'</a></td>';
} else {