diff --git a/includes/functions.php b/includes/functions.php index ba97f147..d2ddd30c 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -332,6 +332,7 @@ function DisplayTorProxyConfig(){ '; } + $arrConfig = array(); foreach( $return as $a ) { if( $a[0] != "#" ) { $arrLine = explode( " ",$a) ; diff --git a/includes/system.php b/includes/system.php index 308b3121..8faefe61 100755 --- a/includes/system.php +++ b/includes/system.php @@ -35,6 +35,8 @@ function RPiVersion() { 'a02082' => 'Pi 3 Model B', 'a22082' => 'Pi 3 Model B' ); + + $cpuinfo_array = ''; exec('cat /proc/cpuinfo', $cpuinfo_array); $rev = trim(array_pop(explode(':',array_pop(preg_grep("/^Revision/", $cpuinfo_array))))); if (array_key_exists($rev, $revisions)) {