Changeset 2378

Show
Ignore:
Timestamp:
05/17/08 07:11:12 (6 months ago)
Author:
bchoate
Message:

Applying fix for BugId:79781

Files:

Legend:

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

    r2326 r2378  
    3838            $commenter = $ctx->mt->db->fetch_author($comment['comment_commenter_id']); 
    3939            $permission = $ctx->mt->db->fetch_permission(array('blog_id' => $comment['comment_blog_id'], 'id' => $comment['comment_commenter_id'])); 
    40             $commenter = array_merge($commenter, $permission[0]); 
     40            if ( isset($permission) && count($permission) > 0 ) { 
     41                $commenter = array($commenter); 
     42                $commenter = array_merge($commenter, $permission[0]); 
     43            } 
    4144            $ctx->stash('commenter', $commenter); 
    4245        } else {