--- hosting.module	2010-09-10 04:03:48.000000000 +0200
+++ hostingNew.module	2010-09-10 04:54:46.000000000 +0200
@@ -145,10 +145,17 @@ function hosting_site_maintenance() {
  * from an incessant amount of intricately nested code, and allow easier extension / maintenance.
  */
 function hosting_nodeapi(&$node, $op, $arg1, $arg2) {
+  global $user;
   $return = array();
 
   if (in_array($node->type, hosting_context_node_types())) {
     switch ($op) {
+      case 'presave':
+        if (!$node->uid) {
+          $node->uid = $user->uid;
+        }
+        break;
+
       case 'load':
         $return = db_fetch_array(db_query("SELECT name AS hosting_name FROM {hosting_context} WHERE nid = %d", $node->nid));
         if ($return === FALSE) { // Should only happen on install
