Changeset 2501

Show
Ignore:
Timestamp:
06/04/08 01:48:50 (21 months ago)
Author:
takayama
Message:

Fixed BugId:79997
* Added else part

Files:
1 modified

Legend:

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

    r2481 r2501  
    3939            if (empty($commenter)) { 
    4040                $ctx->__stash['commenter'] = null; 
     41            } else { 
     42                $permission = $ctx->mt->db->fetch_permission(array('blog_id' => $comment['comment_blog_id'], 'id' => $comment['comment_commenter_id'])); 
     43                if (!empty($permission)) 
     44                    $commenter = array_merge($commenter, $permission[0]); 
     45                $ctx->stash('commenter', $commenter); 
    4146            } 
    42             $permission = $ctx->mt->db->fetch_permission(array('blog_id' => $comment['comment_blog_id'], 'id' => $comment['comment_commenter_id'])); 
    43             if (!empty($permission)) { 
    44                 $commenter = array_merge($commenter, $permission[0]); 
    45             } 
    46             $ctx->stash('commenter', $commenter); 
    4747        } else { 
    4848            $ctx->__stash['commenter'] = null;