Author Topic

Thomas Nunninger

Sunday 18 June 2006 5:29:53 am

Comment44897

Hi,

I think, I found a small bug with importing user account. In ImportXMLDatafunctioncolletion.php you write:

if ( $isAcountObject ) {
    //create new user
    $objectId = $contentObject->attribute( 'id' );
    if ( $userId > 0 ) {
        ...
    } else {
        eZDebug::writeError("error \$objectId invalid (value: $objectId)","ImportXMLDatafunctioncollection");
    }
....

I think you need to compare if

$objectId > 0

not

$userId > 0

Have a nice day

Thomas