From 28bf6cfce019ef8aa8eda2cc3684c49dea3315e7 Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Wed, 15 Mar 2023 11:37:52 -0400 Subject: [PATCH] Handle single instrument case in migration script --- tools/single_use/migrate_instrument_permissions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/single_use/migrate_instrument_permissions.php b/tools/single_use/migrate_instrument_permissions.php index 731ce9e0c20..10eb93b38a9 100644 --- a/tools/single_use/migrate_instrument_permissions.php +++ b/tools/single_use/migrate_instrument_permissions.php @@ -11,7 +11,7 @@ return; } -foreach ($configSettings['instrument'] as $row) { +foreach (\Utility::associativeToNumericArray($configSettings['instrument']) as $row) { $testID = $DB->pselectOne( "SELECT ID FROM test_names WHERE test_name=:tn", ['tn' => $row['Test_name']],