mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
Fixed php notices log messages.
Signed-off-by: D9ping <D9ping@users.noreply.github.com>
This commit is contained in:
parent
bbea02cc54
commit
fb7ba20055
2 changed files with 3 additions and 0 deletions
|
@ -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) ;
|
||||
|
|
|
@ -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…
Reference in a new issue