summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsalvis2011-03-18 22:18:58 (GMT)
committer salvis2011-03-18 22:18:58 (GMT)
commit77be0d4596072dd91299ebcd1bf0778dd7ca93dd (patch)
tree384afbc3fca292d7db2083667196e6ef8b9a8cce
parent250966ed8696dc28822a64d7ee21256accba1d8a (diff)
Issue #1095478: Avoid notice in profile.module when devel_generating users.
-rw-r--r--devel_generate/devel_generate.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/devel_generate/devel_generate.inc b/devel_generate/devel_generate.inc
index cba1f68..824e600 100644
--- a/devel_generate/devel_generate.inc
+++ b/devel_generate/devel_generate.inc
@@ -59,7 +59,7 @@ function devel_create_users($num, $kill, $age = 0, $roles = array()) {
devel_generate_fields($edit, 'user', 'user');
$edit = (array) $edit;
- $account = user_save(NULL, $edit);
+ $account = user_save(drupal_anonymous_user(), $edit);
if ($pic_config) {
// Since the image.module should scale the picture just pick an