Closed hvorragend closed 11 years ago
The problem is caused by the $core variable. (see Avatar/templates/Avatar_user_header.htm ).
So maybe it's related to http://code.zikula.org/avatar/ticket/30.
I have solved the problem with a workaround. If you get the avatar path directly from the objectdata_attributes table it works:
$table = DBUtil::getTables(); $datacolumn = $table['objectdata_attributes_column']; $where = "WHERE " . $datacolumn['attribute_name'] . " = 'avatar' AND " . $datacolumn['object_id'] . " = " . $uid; $avatar = DBUtil::selectObjectArray ('objectdata_attributes', $where ); $path = $avatar[0]['object_id'];
But it's just a workaround.
This issue is gone with zik 135. I close, feel free to reopen.
The problem is caused by the $core variable. (see Avatar/templates/Avatar_user_header.htm ).
So maybe it's related to http://code.zikula.org/avatar/ticket/30.
I have solved the problem with a workaround. If you get the avatar path directly from the objectdata_attributes table it works:
$table = DBUtil::getTables(); $datacolumn = $table['objectdata_attributes_column']; $where = "WHERE " . $datacolumn['attribute_name'] . " = 'avatar' AND " . $datacolumn['object_id'] . " = " . $uid; $avatar = DBUtil::selectObjectArray ('objectdata_attributes', $where ); $path = $avatar[0]['object_id'];
But it's just a workaround.