|
@@ -73,12 +73,15 @@ class Log
|
|
|
$config = Dever::db('account/config')->find($info['config_id']);
|
|
|
$project = Dever::db('account/config_project')->find($config['project_id']);
|
|
|
//$source = Dever::db($project['source'])->find($info['uid']);
|
|
|
- $source = Dever::db($info['source'])->find($info['source_id']);
|
|
|
- if ($source) {
|
|
|
- $user = Dever::db($project['source'])->find($source['uid']);
|
|
|
- $info['username'] = $user['name'];
|
|
|
- $info['avatar'] = $user['avatar'];
|
|
|
+ if (strstr($info['source'], '/')) {
|
|
|
+ $source = Dever::db($info['source'])->find($info['source_id']);
|
|
|
+ if ($source) {
|
|
|
+ $user = Dever::db($project['source'])->find($source['uid']);
|
|
|
+ $info['username'] = $user['name'];
|
|
|
+ $info['avatar'] = $user['avatar'];
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
$info['config_name'] = $config['name'];
|
|
|
$info['status_name'] = $this->status($info['type_id'], $info['status']);
|
|
|
$info['type_name'] = Dever::load("account/config_type-one#name", $info['type_id']);
|