From fb7ba20055738e0e8d73107b5108329beb7d6920 Mon Sep 17 00:00:00 2001 From: D9ping Date: Mon, 6 Aug 2018 01:18:11 +0200 Subject: [PATCH] Fixed php notices log messages. Signed-off-by: D9ping --- includes/functions.php | 1 + includes/system.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/includes/functions.php b/includes/functions.php index ba97f14..d2ddd30 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 308b312..8faefe6 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)) {