Fixed notices in some prints.

Please note: unless enclosed in string literals, you must use string
literals to access array elements with strings (i.e. $user['type']
instead of $user[type]).