#1171 | |
#1172 | //更新分类表 |
#1173 | $catedata = $this->category->get($cid); |
#1174 | if (empty($catedata)) { |
#1175 | return lang('category_not_exists'); |
#1176 | } |
#1177 | if ($catedata['count'] > 0) { |
#1178 | $catedata['count']--; |
#1179 | if (!$this->category->update($catedata)) { |
#1180 | return lang('write_content_table_failed'); |