Fixed version/date extraction in previous unRAID version

This commit is contained in:
bergware
2018-03-01 12:26:23 +01:00
parent 8babe128cc
commit 9706054dfe

View File

@@ -22,7 +22,8 @@ $version = $date = 'unknown';
if (file_exists('/boot/previous/changes.txt')) {
exec("head -n4 /boot/previous/changes.txt",$rows);
foreach ($rows as $row) {
if ($i = stripos($row,'version')!==false) {
$i = stripos($row,'version');
if ($i !== false) {
list($version,$date) = explode(' ',trim(substr($row,$i+7)));
break;
}