Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions www/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function walk($array, $key)
{
if($k == $key)
{
return True;
return true;
}
}
return false;
Expand Down Expand Up @@ -171,7 +171,7 @@ function update_interfaces_file($select)
$strdata = file_get_contents ("/boot/cmdline.txt");
$arrdata = explode (" ",$strdata);
foreach($arrdata as $key => $value) {
if (strpos($value, 'smsc95xx.macaddr=') !== FALSE) {
if (strpos($value, 'smsc95xx.macaddr=') !== false) {
unset($arrdata[$key]);
}
}
Expand Down Expand Up @@ -217,7 +217,7 @@ function update_interfaces_file($select)
$strdata = file_get_contents ("/boot/cmdline.txt");
$arrdata = explode (" ",$strdata);
foreach($arrdata as $key => $value) {
if (strpos($value, 'smsc95xx.macaddr=') !== FALSE) {
if (strpos($value, 'smsc95xx.macaddr=') !== false) {
unset($arrdata[$key]);
}
}
Expand All @@ -242,7 +242,7 @@ function update_interfaces_file($select)
$strdata = file_get_contents ("/boot/cmdline.txt");
$arrdata = explode (" ",$strdata);
foreach($arrdata as $key => $value) {
if (strpos($value, 'smsc95xx.macaddr=') !== FALSE) {
if (strpos($value, 'smsc95xx.macaddr=') !== false) {
unset($arrdata[$key]);
}
}
Expand Down