Index: trunk/core/units/general/cat_dbitem.php =================================================================== diff -u -r4758 -r5211 --- trunk/core/units/general/cat_dbitem.php (.../cat_dbitem.php) (revision 4758) +++ trunk/core/units/general/cat_dbitem.php (.../cat_dbitem.php) (revision 5211) @@ -22,7 +22,10 @@ $this->SetDBField('ResourceId', $this->Application->NextResourceId()); $this->SetDBField('Modified', adodb_mktime() ); - $this->SetDBField('CreatedById', $this->Application->GetVar('u_id')); + + if ($this->mode != 't') { + $this->SetDBField('CreatedById', $this->Application->GetVar('u_id')); + } if ($this->useFilenames) { $this->checkFilename(); Index: trunk/kernel/units/general/cat_dbitem.php =================================================================== diff -u -r4758 -r5211 --- trunk/kernel/units/general/cat_dbitem.php (.../cat_dbitem.php) (revision 4758) +++ trunk/kernel/units/general/cat_dbitem.php (.../cat_dbitem.php) (revision 5211) @@ -22,7 +22,10 @@ $this->SetDBField('ResourceId', $this->Application->NextResourceId()); $this->SetDBField('Modified', adodb_mktime() ); - $this->SetDBField('CreatedById', $this->Application->GetVar('u_id')); + + if ($this->mode != 't') { + $this->SetDBField('CreatedById', $this->Application->GetVar('u_id')); + } if ($this->useFilenames) { $this->checkFilename();