summaryrefslogtreecommitdiff
path: root/modules/box.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/box.module')
-rw-r--r--modules/box.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/box.module b/modules/box.module
index 9d8c5bc83..6618f6b60 100644
--- a/modules/box.module
+++ b/modules/box.module
@@ -18,8 +18,8 @@ function box_help() {
</PRE>
<P>If we are however dealing with a registered user, we can customize the message by using:</P>
<PRE>
- if ($user->userid) {
- return "Welcome $user->userid, ... welcome message goes here ...";
+ if ($user->id) {
+ return "Welcome $user->name, ... welcome message goes here ...";
}
else {
return "Welcome visitor, ... welcome message goes here ...";