Bugfixing if no reflectorswitching in ysf

This commit is contained in:
Kim Huebel 2018-02-18 14:04:56 +00:00
parent c829cde3ab
commit 42a98ddb4d

View file

@ -58,10 +58,22 @@
echo ' <a target="_new" href="http://'.$reflector[$i].'"><img src="images/dashboard.png" /></a>';
}
echo"</td>";
} else {
if ($i == 0) {
echo"<td>$reflector[$i]";
$i++;
if ($reflector[$i] !=="") {
if (startsWith($reflector[$i],"http"))
echo ' <a target="_new" href="'.$reflector[$i].'"><img src="images/dashboard.png" /></a>';
else
echo ' <a target="_new" href="http://'.$reflector[$i].'"><img src="images/dashboard.png" /></a>';
}
echo"</td>";
} else {
echo"<td>$reflector[$i]</td>";
}
}
}
echo "</tr>\n";
$counter++;
}