Changeset 2395

Show
Ignore:
Timestamp:
05/19/08 22:45:56 (21 months ago)
Author:
bchoate
Message:

Applied fixes for commentauthoridentity and commentauthor tags. BugId:79329,79811

Location:
branches/release-38/php/lib
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/release-38/php/lib/function.mtcommentauthor.php

    r2055 r2395  
    1313    if ($c['comment_commenter_id']) { 
    1414        $commenter = $ctx->stash('commenter'); 
     15        if (is_array($commenter)) 
     16            $commenter = $commenter[0]; 
    1517        if ($commenter) 
    1618            $a = $commenter['author_nickname']; 
  • branches/release-38/php/lib/function.mtcommentauthoridentity.php

    r2109 r2395  
    1717    } 
    1818    if (!$cmntr) return ""; 
    19     if (isset($cmntr['author_url'])) { 
     19    if (is_array($cmntr)) 
     20        $cmntr = $cmntr[0]; 
     21    if (isset($cmntr['author_url'])) 
    2022        $link = $cmntr['author_url']; 
    21     } else { 
    22         return ""; 
    23     } 
    2423    require_once "function.mtstaticwebpath.php"; 
    2524    $static_path = smarty_function_mtstaticwebpath($args, $ctx); 
     
    3938    return $result; 
    4039} 
    41 ?>