I have a script that works in our D6 site that reads a CSV file and Updates the User Record Profile Fields and sets their Access level.
I'm calling it like:
$someUmail = $UserRecord[$NoEmail];
$user = user_load(array('mail' => $someUmail));
$NoEmail Contains the Email address in the $UserRecord Array at Position 2
$someUmail contains the email address,
The user_load always returns boolean false
I even put a valid userid in the $someUmail and user_load still returned false.
Anybody have an idea of whats wrong?