Index: branches/5.1.x/core/install.php =================================================================== diff -u -N -r13569 -r13581 --- branches/5.1.x/core/install.php (.../install.php) (revision 13569) +++ branches/5.1.x/core/install.php (.../install.php) (revision 13581) @@ -1,6 +1,6 @@ errorMessage == '') { - $user_id = -1; + $user_id = USER_ROOT; $session =& $this->Application->recallObject('Session'); $session->SetField('PortalUserId', $user_id); $this->Application->SetVar('u.current_id', $user_id); @@ -563,7 +563,7 @@ $fields_hash = Array ( 'l1_Name' => 'Content', 'Filename' => 'Content', 'AutomaticFilename' => 0, - 'CreatedById' => -1, 'CreatedOn' => time(), 'ResourceId' => $resource_id - 1, + 'CreatedById' => USER_ROOT, 'CreatedOn' => time(), 'ResourceId' => $resource_id - 1, 'l1_Description' => 'Content', 'Status' => 4, );