Commit ea6a5a24 authored by hass's avatar hass
Browse files

#679404: warning: Parameter 1 to profile_load_profile()

parent 9b98e3a2
......@@ -86,11 +86,9 @@ function googleanalytics_footer($main = 0) {
// Add User profile segmentation values.
$profile_fields = variable_get('googleanalytics_segmentation', array());
if (!empty($profile_fields) && ($user->uid > 0)) {
// Invoke all modules having a hook_user_load() implemented.
// If the invoked modules extend the $user object, the additional
// data can be tracked.
module_invoke_all('load_profile', $user);
if (module_exists('profile') && !empty($profile_fields) && ($user->uid > 0)) {
// Extend the $user object with profile data.
profile_load_profile($user);
$fields = array();
foreach ($profile_fields as $field => $title) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment