* fix the bug of substr.

This commit is contained in:
wangchunsheng
2010-01-19 09:24:31 +00:00
parent 8042cbd5f0
commit f12e8bee92

View File

@@ -5,7 +5,7 @@
<li>
<?php
if(isset($users[$action->actor])) $action->actor = $users[$action->actor];
if($pos = strpos($action->actor, ':') !== false) $action->actor = substr($action->actor, $pos + 1);
if(strpos($action->actor, ':') !== false) $action->actor = substr($action->actor, strpos($action->actor, ':') + 1);
?>
<span><?php echo "$action->date, <strong>$action->action</strong> by <strong>$action->actor</strong>"; ?></span>
<?php if(!empty($action->comment) or !empty($action->history)):?>