From 855da15b23ca76254c48d61397058049c5c0cf96 Mon Sep 17 00:00:00 2001 From: bergware Date: Mon, 16 Oct 2023 12:15:16 +0200 Subject: [PATCH] Fix typos --- emhttp/plugins/dynamix/include/update.crypto.php | 2 +- emhttp/plugins/dynamix/include/update.encryption.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {