Swapped if check

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