Skip to content

Commit

Permalink
moving the var so its with what is using it
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Sep 6, 2010
1 parent 4fd18c2 commit d83677d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infinitas/comment/views/elements/modules/comment.ctp
Expand Up @@ -30,7 +30,6 @@
$Model = ClassRegistry::init($this->params['plugin'].'.'.$modelName);
$data = &${strtolower($modelName)};

$_comments = array();
$comments = isset($data[$modelName][$modelName.'Comment'])
? $data[$modelName][$modelName.'Comment']
: $data[$modelName.'Comment'];
Expand All @@ -48,6 +47,7 @@
);
}

$_comments = array();
foreach($comments as $comment){
$_comments[] =
'<div class="comment">'.
Expand Down

0 comments on commit d83677d

Please sign in to comment.