Avoid saving msg when deleting category

This commit is contained in:
nathangray 2019-03-20 10:30:54 -06:00
parent 4df5fad081
commit 8c4cfeb7f7

View File

@ -152,11 +152,11 @@ class admin_categories
case 'apply':
if(is_array($content['owner'])) $content['owner'] = implode(',',$content['owner']);
if($content['owner'] == '') $content['owner'] = 0;
unset($content['msg']);
if ($content['id'] && self::$acl_edit)
{
$data = $cats->id2name($content['id'],'data');
unset($content['msg']);
if(!$content['parent'])
{
$content['parent'] = '0';