|
@@ -88,13 +88,13 @@ class Data
|
|
|
$info['cdate'] = $data['pdate'];
|
|
|
}
|
|
|
|
|
|
- if (isset($info['cate_id']) && $info['cate_id']) {
|
|
|
- $cate = Dever::db('content/cate')->one($info['cate_id']);
|
|
|
+ if (isset($data['cate_id']) && $data['cate_id']) {
|
|
|
+ $cate = Dever::db('content/cate')->one($data['cate_id']);
|
|
|
$info['cate_name'] = $cate['name'];
|
|
|
}
|
|
|
|
|
|
- if (isset($info['author_id']) && $info['author_id']) {
|
|
|
- $author = Dever::db('content/author')->one($info['author_id']);
|
|
|
+ if (isset($data['author_id']) && $data['author_id']) {
|
|
|
+ $author = Dever::db('content/author')->one($data['author_id']);
|
|
|
$info['author_name'] = $author['name'];
|
|
|
}
|
|
|
}
|