Skip to content

Commit

Permalink
Fix user image see #7930
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Nov 23, 2015
1 parent 7f67cea commit 9e5f74a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions main/user/user.php
Expand Up @@ -264,6 +264,7 @@
null,
array('width' => $user_image_pdf_size.'px')
);

if ($is_western_name_order) {
$user_pdf = array(
$counter,
Expand Down Expand Up @@ -349,11 +350,8 @@
}
if ($_GET['format'] == 'pdf') {
$user_info = api_get_user_info($user['user_id']);
$user_image = Display::img(
$user_info['avatar_no_query'],
null,
array('width' => $user_image_pdf_size.'px')
);

$user_image = '<img src="'.$user_info['avatar_no_query'].'" width ="'.$user_image_pdf_size.'px" />';

if ($is_western_name_order) {
$user_pdf = array(
Expand Down Expand Up @@ -412,6 +410,7 @@
'pdf_title' => $pdfTitle,
'header_attributes' => $header_attributes
);

Export::export_table_pdf($a_users, $params);
exit;
}
Expand Down

0 comments on commit 9e5f74a

Please sign in to comment.