Changeset 2109

Show
Ignore:
Timestamp:
04/25/08 23:58:06 (3 months ago)
Author:
bchoate
Message:

Condition author link. BugId:79512

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-36/php/lib/function.mtcommentauthoridentity.php

    r1174 r2109  
    3333        $logo = $root_url . "nav-commenters.gif"; 
    3434    } 
    35     return "<a class=\"commenter-profile\" href=\"$link\"><img alt=\"Author Profile Page\" src=\"$logo\" width=\"16\" height=\"16\" /></a>"; 
     35    $result = "<img alt=\"Author Profile Page\" src=\"$logo\" width=\"16\" height=\"16\" />"; 
     36    if ($link) { 
     37        $result = "<a class=\"commenter-profile\" href=\"$link\">$result</a>"; 
     38    } 
     39    return $result; 
    3640} 
    3741?>