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']],