Index: branches/5.0.x/core/units/categories/categories_item.php =================================================================== diff -u -r12511 -r12535 --- branches/5.0.x/core/units/categories/categories_item.php (.../categories_item.php) (revision 12511) +++ branches/5.0.x/core/units/categories/categories_item.php (.../categories_item.php) (revision 12535) @@ -1,6 +1,6 @@ SetDBField('CreatedById', $this->Application->RecallVar('user_id') ); - $this->SetDBField('CreatedOn_date', adodb_mktime() ); - $this->SetDBField('CreatedOn_time', adodb_mktime() ); + $is_admin = $this->Application->IsAdmin(); + if ((!$this->IsTempTable() && !$is_admin) || ($is_admin && !$this->GetDBField('CreatedById'))) { + $this->SetDBField('CreatedById', $this->Application->RecallVar('user_id')); + } + $parent_category = $this->GetDBField('ParentId') > 0 ? $this->GetDBField('ParentId') : $this->Application->GetVar('m_cat_id'); $this->SetDBField('ParentId', $parent_category);