Fixed php notices log messages.

Signed-off-by: D9ping <D9ping@users.noreply.github.com>
This commit is contained in:
D9ping 2018-08-06 01:18:11 +02:00
parent bbea02cc54
commit fb7ba20055
2 changed files with 3 additions and 0 deletions

View file

@ -332,6 +332,7 @@ function DisplayTorProxyConfig(){
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>';
}
$arrConfig = array();
foreach( $return as $a ) {
if( $a[0] != "#" ) {
$arrLine = explode( " ",$a) ;

View file

@ -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)) {