summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--googleanalytics.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/googleanalytics.module b/googleanalytics.module
index 55422be..043f7b9 100644
--- a/googleanalytics.module
+++ b/googleanalytics.module
@@ -481,7 +481,7 @@ function _googleanalytics_visibility_pages() {
*/
function googleanalytics_token_values($type, $object = NULL, $options = array()) {
if ($type == 'user') {
- if (!empty($object)) {
+ if (!empty($object->roles)) {
$account = $object;
}
else {