I've traced the call stack several times and I can't find that variable being defined anywhere. I could just be blind but from what I can make of the flow of the code, if it can't find the file, it would make sense that the 'data' field wouldn't exist.
On line 308 of /var/www/ mahara/ admin/users/ add.php the global variable $LEAP2A_FILE is used
$filename = substr( $LEAP2A_ FILE, strlen( get_config( 'dataroot' )));
I've traced the call stack several times and I can't find that variable being defined anywhere. I could just be blind but from what I can make of the flow of the code, if it can't find the file, it would make sense that the 'data' field wouldn't exist.