Paladin
unread,Nov 24, 2009, 11:35:53 AM11/24/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Joomla! Framework Development
Last quandary to pose to the JUser experts (OK, sit down, enough with
the applause already):
Two problems with the JUser::save method:
Line 523:
$my = &JFactory::getUser();
Calls for a session to start with a getUser call that is not
necessary, as $my is not used anywhere else in the method. At a guess,
it was necessary when the lines 524-537 were not commented out, but it
probably should have been commented out at the same time they were.
Line 543-5:
if ($isnew && $updateOnly) {
return true;
}
Tests to see if it's a new record when we're supposed to be doing only
updates. If it's new, and we can't create a new user it
returns.....true? Shouldn't that be false?