diff --git a/www/functions.php b/www/functions.php index b5e4afc..ec16e41 100644 --- a/www/functions.php +++ b/www/functions.php @@ -124,7 +124,7 @@ function walk($array, $key) { if($k == $key) { - return True; + return true; } } return false; @@ -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]); } } @@ -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]); } } @@ -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]); } }