| #311 | } |
| #312 | empty($author) AND $author = empty($user['author'] ) ? $user['username'] : $user['author']; |
| #313 | |
| #314 | |
| #315 | //分类检查 |
| #316 | $categorys = $this->category->get($cid); |
| #317 | if(empty($categorys)){ |
| #318 | return array('err'=>1 ,'msg'=>lang('category_not_exists')); |
| #319 | } |
| #320 | $mid = (int)$categorys['mid']; |