mirror of
https://github.com/unraid/webgui.git
synced 2026-02-13 12:38:45 -06:00
Suppress error in info parsing
This commit is contained in:
@@ -108,12 +108,12 @@ $myfile = "case-model.cfg";
|
||||
$mycase = file_exists("$boot/$myfile") ? file_get_contents("$boot/$myfile") : false;
|
||||
|
||||
$board = dmidecode('Base Board Information','2',0);
|
||||
$serial = _("s/n").": {$board['Serial Number']}";
|
||||
$board = "{$board['Manufacturer']} {$board['Product Name']}".($board['Version'] ? ", "._("Version")." {$board['Version']}" : "");
|
||||
$serial = _("s/n").": ".($board['Serial Number'] ?? "--");
|
||||
$board = ($board['Manufacturer'] ?? "").' '.($board['Product Name'] ?? "").' '.(isset($board['Version']) ? ", "._("Version")." ".$board['Version'] : "");
|
||||
|
||||
$bios = dmidecode('BIOS Information','0',0);
|
||||
$biosdate = _("BIOS dated").": "._(my_time(strtotime($bios['Release Date']),$display['date']),0);
|
||||
$bios = $bios['Vendor'].($bios['Version'] ? ", "._("Version")." {$bios['Version']}" : "");
|
||||
$biosdate = _("BIOS dated").": "._(my_time(strtotime($bios['Release Date'] ?? ""),$display['date']),0);
|
||||
$bios = $bios['Vendor'].(isset($bios['Version']) ? ", "._("Version")." ".$bios['Version'] : "");
|
||||
|
||||
$cpu = dmidecode('Processor Information','4',0);
|
||||
$cpumodel = str_ireplace(["Processor","(C)","(R)","(TM)"],["","©","®","™"],$cpu['Version']);
|
||||
|
||||
Reference in New Issue
Block a user