Filtered out new lines to not break webui

This commit is contained in:
laf
2015-04-13 11:47:25 +01:00
parent b4bae93b9f
commit ba1e9e6c5f
+4 -3
View File
@@ -182,11 +182,12 @@ foreach (dbFetch('SELECT `os` FROM `devices` AS D WHERE 1 GROUP BY `os` ORDER BY
foreach (dbFetch('SELECT `version` FROM `devices` AS D WHERE 1 GROUP BY `version` ORDER BY `version`') as $data) {
if ($data['version']) {
echo('"<option value=\"'.$data['version'].'\""+');
if ($data['version'] == $vars['version']) {
$tmp_version = str_replace(array("\r","\n"), "", $data['version']);
echo('"<option value=\"'.$tmp_version.'\""+');
if ($data['version'] == $tmp_version) {
echo('" selected "+');
}
echo('">'.$data['version'].'</option>"+');
echo('">'.$tmp_version.'</option>"+');
}
}
?>