Changeset 2481

Show
Ignore:
Timestamp:
06/02/08 10:28:02 (6 months ago)
Author:
takayama
Message:

Fixed BugId:79997
* Does not transforms to array if commenter array is not null

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-39/php/lib/block.mtcomments.php

    r2378 r2481  
    3737        if ($comment['comment_commenter_id']) { 
    3838            $commenter = $ctx->mt->db->fetch_author($comment['comment_commenter_id']); 
     39            if (empty($commenter)) { 
     40                $ctx->__stash['commenter'] = null; 
     41            } 
    3942            $permission = $ctx->mt->db->fetch_permission(array('blog_id' => $comment['comment_blog_id'], 'id' => $comment['comment_commenter_id'])); 
    40             if ( isset($permission) && count($permission) > 0 ) { 
    41                 $commenter = array($commenter); 
     43            if (!empty($permission)) { 
    4244                $commenter = array_merge($commenter, $permission[0]); 
    4345            }