I\'ve written what I thought was a very simple use of the php explode() function to split a name into forename and surname:
// split name into f
This could be due the fact that $fullname did not contain a space character.
This example should fix your problem w/o displaying this notice:
$split = explode(' ', $fullname, 2);
$first = @$split[0];
$last = @$split[1];
Now if $fullname is "musoNic80" you won't get a notice message.
Note the use of "@" characters.
HTH Elias