/*
I am in the process of updating the user_force_term module from Drupal 5 to Drupal 6.
Update seems completed except for this notice:
notice: Undefined property: stdClass::$uid in /....../d6/sites/all/modules/user_force_term/user_force_term.module on line 118.
The line containing "$uid = $account->uid;" is line 118.
Related code snippet from user_force_term:
*/
/**
* Implementation of hook_user().
*/
function user_force_term_user($op, &$edit, &$account, $category = NULL) {
$uid = $account->uid;
// ...
}
/*
Result of 1st print_r:
--8<----8<----8<----8<----8<----8<--
stdClass Object
(
)
stdClass Object
(
[uid] => 1
[name] => admin
[pass] => 21232f297a57a5a743894a0e4a801fc3
[mail] => webmaster@d6.local
[mode] => 0
[sort] => 0
[threshold] => 0
[theme] =>
[signature] =>
[created] => 1215524521
[access] => 1215791938
[login] => 1215524589
[status] => 1
[timezone] =>
[language] =>
[picture] =>
[init] => webmaster@d6.local
[data] => a:0:{}
[roles] => Array
(
[2] => authenticated user
)
)
--8<----8<----8<----8<----8<----8<--
Result of 2nd print_r:
--8<----8<----8<----8<----8<----8<--
1
--8<----8<----8<----8<----8<----8<--
*/