Skip to content

Commit

Permalink
fixed link of the non member (fixes #2007)
Browse files Browse the repository at this point in the history
  • Loading branch information
Masato Nagasawa committed May 11, 2011
1 parent f95657d commit 27b4424
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Expand Up @@ -10,7 +10,12 @@
<?php foreach ($pager->getResults() as $ashiato) : ?>
<tr><td bgcolor="<?php echo cycle_vars($id, '#e0eaef,#ffffff') ?>">
<?php echo op_format_date($ashiato->updated_at, 'XDateTime'); ?>
&nbsp;<?php echo link_to($ashiato->Member_2->name, 'member/profile?id=' . $ashiato->Member_2->id); ?>
&nbsp;
<?php if ($ashiato->Member_2 && $ashiato->Member_2->id): ?>
<?php echo link_to($ashiato->Member_2->name, 'member/profile?id=' . $ashiato->Member_2->id); ?>
<?php else: ?>
<?php echo opConfig::get('nickname_of_member_who_does_not_have_credentials', '') ?>
<?php endif ?>
</td></tr>
<?php endforeach; ?>

Expand Down
7 changes: 6 additions & 1 deletion apps/pc_frontend/modules/ashiato/templates/listSuccess.php
Expand Up @@ -11,7 +11,12 @@
<ul class="list">
<?php foreach ($pager->getResults() as $ashiato) : ?>
<li><?php echo op_format_date($ashiato->updated_at, 'XDateTimeJaBr'); ?>&nbsp;
<?php echo link_to($ashiato->Member_2->name, 'member/profile?id=' . $ashiato->Member_2->id); ?></li>
<?php if ($ashiato->Member_2 && $ashiato->Member_2->id): ?>
<?php echo link_to($ashiato->Member_2->name, 'member/profile?id=' . $ashiato->Member_2->id); ?>
<?php else: ?>
<?php echo opConfig::get('nickname_of_member_who_does_not_have_credentials', '') ?>
<?php endif ?>
</li>
<?php endforeach; ?>
</ul>
</div>
Expand Down

0 comments on commit 27b4424

Please sign in to comment.