Allow setting owner when creating a new category

This commit is contained in:
Nathan Gray 2011-07-06 15:09:08 +00:00
parent d7372d5a60
commit e4d0a78c8d

View File

@ -423,7 +423,7 @@ class categories
}
$this->db->insert(self::TABLE,array(
'cat_parent' => $values['parent'],
'cat_owner' => $this->account_id,
'cat_owner' => isset($values['owner']) ? $values['owner'] : $this->account_id,
'cat_access' => isset($values['access']) ? $values['access'] : 'public',
'cat_appname' => $this->app_name,
'cat_name' => $values['name'],