Closed (fixed)
Project:
Wordpress Import
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
27 Nov 2009 at 17:10 UTC
Updated:
15 Dec 2009 at 00:50 UTC
I noticed this foreach loop did not check to make sure there was a value being passed to it:
foreach ($wordpress_import->newuser as $key => $value) {
$user = array('mail' => $value['mail'], 'pass' => user_password(), 'name' => $value['name'], 'status' => 1);
$user = user_save('', $user);
$wordpress_import->usermap[$key] = $user->uid;
$context['results']['created_users']++;
}
Attached is a fix.
| Comment | File | Size | Author |
|---|---|---|---|
| wordpress_import-foreach.patch | 1.37 KB | kmonty |
Comments
Comment #1
kmontyComment #2
lavamind commentedThank you for this patch, and other bug reports you submitted.
I will review them as soon as possible and commit the required fixes.
Comment #3
lavamind commentedFixed in 6.x-2.x-dev
Thanks!