diff --git a/profiler_api.inc b/profiler_api.inc
index 0b06ed0..e75899c 100644
--- a/profiler_api.inc
+++ b/profiler_api.inc
@@ -376,7 +376,7 @@ function profiler_install_users($users) {
     // For some reason db_last_insert_id() doesn't get the uid of the newly created
     // user, so we need to separate out roles first, create the account, then save
     // again to properly assign roles to this user.
-    $roles = isset($array['roles']) ? $array['roles'] : array();
+    $roles = isset($array['roles']) ? $array['roles'] : '';
     unset($array['roles']);
 
     // Use random password.
