Skip to content

Commit

Permalink
Merge pull request pihome-shc#337 from twa127/master
Browse files Browse the repository at this point in the history
Small update to model.php to set interface_type
  • Loading branch information
pihome-shc authored Jul 19, 2020
2 parents 23b216f + 1a875a1 commit 7dff8ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,7 @@
while($row = mysqli_fetch_assoc($result)) {
$rowArray[] = $row;
}
if (empty($rowArray[0]['interface_type'])) { $rowArray[0]['interface_type'] = 'wlan0'; }

echo '<p class="text-muted">'.$lang['network_text'].'</p>';
echo '
Expand All @@ -1015,7 +1016,7 @@
<input class="form-control input-sm" type="hidden" id="n_int_type" name="n_int_type" value="'.$rowArray[0]['interface_type'].'"/>
<div class="form-group" class="control-label"><label>'.$lang['network_interface'].'</label>
<select class="form-control input-sm" type="text" id="n_int_num" name="n_int_num" onchange=change(this.options[this.selectedIndex].value)>
<option value=0>wlan0</option>
<option selected value=0>wlan0</option>
<option value=1>wlan1</option>
<option value=2>eth0</option>
<option value=3>eth1</option>
Expand Down

0 comments on commit 7dff8ee

Please sign in to comment.