| #947 | if ($tagdata) { |
| #948 | $tagdata = current($tagdata); |
| #949 | } else { |
| #950 | $tag_post = ['name' => $name, 'count' => 0, 'content' => '']; |
| #951 | |
| #952 | |
| #953 | $tagid = $this->cms_content_tag->create($tag_post); |
| #954 | if (!$tagid) { |
| #955 | return ['err' => 1, 'msg' => lang('write_tag_table_failed')]; |
| #956 | } |