diff --git a/emhttp/plugins/dynamix/include/update.crypto.php b/emhttp/plugins/dynamix/include/update.crypto.php index dcb25945a..6f4501016 100644 --- a/emhttp/plugins/dynamix/include/update.crypto.php +++ b/emhttp/plugins/dynamix/include/update.crypto.php @@ -23,7 +23,7 @@ if ($index < count($tests)) { $test = $tests[$index]; [$name,$size] = my_explode(':',$test); if (!$size) { - $default = ($test==_var($_GET,'hash'])); + $default = ($test==_var($_GET,'hash')); if ($index>0) $test .= '|tail -1'; if ($default) echo ""; echo preg_replace(['/^(# Tests.*\n)/','/\n$/'],["$1\n",""],shell_exec("/usr/sbin/cryptsetup benchmark -h $test")); diff --git a/emhttp/plugins/dynamix/include/update.encryption.php b/emhttp/plugins/dynamix/include/update.encryption.php index 982e74662..77c21632f 100644 --- a/emhttp/plugins/dynamix/include/update.encryption.php +++ b/emhttp/plugins/dynamix/include/update.encryption.php @@ -50,7 +50,7 @@ function removeKey($key,$disk) { } function diskname($name) { global $disks; - foreach ($disks as $disk) if (strncmp($name,$disk['device'],strlen(disk['device']))==0) return $disk['name']; + foreach ($disks as $disk) if (strncmp($name,$disk['device'],strlen($disk['device']))==0) return $disk['name']; return $name; } function reply($text,$type) {