Browse Source

Fixed php notices log messages.

Signed-off-by: D9ping <D9ping@users.noreply.github.com>
pull/220/head
D9ping 4 years ago
parent
commit
fb7ba20055
  1. 1
      includes/functions.php
  2. 2
      includes/system.php

1
includes/functions.php

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

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

Loading…
Cancel
Save