projects
/
project/google_analytics.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2bc91ca
)
#1039394: Fix for E_ALL warning if $account->roles is empty.
author
hass
Mon, 31 Jan 2011 20:09:27 +0000 (20:09 +0000)
committer
hass
Mon, 31 Jan 2011 20:09:27 +0000 (20:09 +0000)
googleanalytics.module
patch
|
blob
|
blame
|
history
diff --git
a/googleanalytics.module
b/googleanalytics.module
index
55422be
..
043f7b9
100644
(file)
--- 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 {