HomeHelpTrac

Changeset 15815 for tags


Ignore:
Timestamp:
12/30/11 03:17:23 (5 months ago)
Author:
Alexander Trofimov
Message:

Ticket #2708

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/7.0/templates/base/scripts/BxBaseCmtsView.php

    r15589 r15815  
    386386    function _getAuthorIcon ($a) { 
    387387        global $oFunctions; 
    388         return $oFunctions->getMemberIcon($a['cmt_author_id']); 
     388        if (!$a['cmt_author_id'] || !getProfileInfo($a['cmt_author_id'])) { 
     389            if (!@include_once (BX_DIRECTORY_PATH_MODULES . 'boonex/avatar/include.php')) 
     390                return ''; 
     391            return '<div class="thumbnail_block" style="float:none;width:'.(BX_AVA_ICON_W+8).'px;height:'.(BX_AVA_ICON_H+8).'px;"><div class="thumbnail_image" style="width:'.(BX_AVA_ICON_W+4).'px;height:'.(BX_AVA_ICON_H+4).'px;"><img src="' . $oFunctions->getSexPic('', 'small') . '" /></div></div>'; 
     392        } else { 
     393            return $oFunctions->getMemberIcon($a['cmt_author_id']); 
     394        } 
    389395    } 
    390396    function _getBrowse() { 
Note: See TracChangeset for help on using the changeset viewer.