Hello,
It seems that currently users export doesn't work at all.
Here's explanation:
// We're importing users from the import table. If I get it right, the column 'id' should be NULL at this moment.
$query = "SELECT * FROM #__kunenaimporter_users ORDER BY extid";
// loadObjectList($key) - Joomla docs says the following: "If $key is not empty then the returned array is indexed by the value the database key.
$extusers = $db->loadObjectList ( 'id' );
// Hence all results are indexed by NULL, literally in code:
// foreach ($users as $user) {
// $users[null] = $user;
// }
What I think it should look like:
$extusers = $db->loadObjectList ( 'extid' );
So the code will be:
foreach ($users as $user) {
$users[$user->extid] = $user;
}
Hello, It seems that currently users export doesn't work at all. Here's explanation:
// We're importing users from the import table. If I get it right, the column 'id' should be NULL at this moment. $query = "SELECT * FROM #__kunenaimporter_users ORDER BY extid";
// loadObjectList($key) - Joomla docs says the following: "If $key is not empty then the returned array is indexed by the value the database key. $extusers = $db->loadObjectList ( 'id' );
// Hence all results are indexed by NULL, literally in code: // foreach ($users as $user) { // $users[null] = $user; // }
What I think it should look like:
$extusers = $db->loadObjectList ( 'extid' );
So the code will be:
foreach ($users as $user) { $users[$user->extid] = $user; }