diff -r b501c2ccfe1a modules/hosting/client/hosting_client.access.inc
--- modules/hosting/client/hosting_client.access.inc Tue Sep 06 02:29:25 2011 -0400
+++ modules/hosting/client/hosting_client.access.inc Thu Sep 08 15:38:31 2011 -0400
@@ -236,7 +236,7 @@ function hosting_client_node_access_reco
       return;
   }
 
-  if ($base_grant['gid']) {
+  if (isset($base_grant['gid'])) {
     $grants[] = $base_grant;
 
     // this should _always_ happen.
diff -r b501c2ccfe1a modules/hosting/client/hosting_client.module
--- modules/hosting/client/hosting_client.module Tue Sep 06 02:29:25 2011 -0400
+++ modules/hosting/client/hosting_client.module Thu Sep 08 15:38:31 2011 -0400
@@ -875,6 +875,8 @@ function hosting_client_form_alter(&$for
 function hosting_nodeapi_platform_load($node) {
   $result = db_query("SELECT cid FROM {hosting_platform_client_access} WHERE pid = %d", $node->nid);
 
+  $additions = array();
+
   while ($record = db_fetch_object($result)) {
     $additions['clients'][$record->cid] = $record->cid;
   }
@@ -891,7 +893,7 @@ function hosting_client_nodeapi(&$node, 
     case 'update':
       if ($node->type == 'platform') {
         // Enter access rights in to the db for clients if any were selected
-        if ($node->clients) {
+        if (!empty($node->clients)) {
           $clients = $node->clients;
           foreach ($clients as $cid => $choice) {
             if ($choice) {
diff -r b501c2ccfe1a modules/hosting/db_server/hosting_db_server.module
--- modules/hosting/db_server/hosting_db_server.module Tue Sep 06 02:29:25 2011 -0400
+++ modules/hosting/db_server/hosting_db_server.module Thu Sep 08 15:38:31 2011 -0400
@@ -49,9 +49,13 @@ function hosting_get_db_server($hostname
 function hosting_db_server_nodeapi_server_presave(&$node) {
   if (empty($node->db_passwd) && !empty($node->nid)) {
     $old = node_load($node->nid);
+
+    // First install might not have a database password yet...
+    if (isset($old->db_passwd)) {
     $node->db_passwd = $old->db_passwd;
   }
 }
+}
 
 /**
  * Implementation of hook_views_api().
diff -r b501c2ccfe1a modules/hosting/package/hosting_package.module
--- modules/hosting/package/hosting_package.module Tue Sep 06 02:29:25 2011 -0400
+++ modules/hosting/package/hosting_package.module Thu Sep 08 15:38:31 2011 -0400
@@ -262,7 +262,7 @@ function hosting_package_insert($node) {
  */
 function hosting_package_update($node) {
   // if this is a new node or we're adding a new revision,
-  if ($node->revision) {
+  if (isset($node->revision)) {
     hosting_package_insert($node);
   }
   else {
@@ -367,6 +367,10 @@ function _hosting_package_plural_map($ke
  * @todo Make this prettier.
  */
 function hosting_package_sync(&$data) {
+  if (!is_array($data)) {
+    drush_log(dt('Cannot sync package information. Package information is missing or incorrect.'), 'error');
+  }
+  else {
   foreach ($data as $plural => $packages) {
     $type = _hosting_package_plural_map($plural);
     foreach ($packages as $short_name => $file) {
@@ -399,6 +403,7 @@ function hosting_package_sync(&$data) {
     }
   }
 }
+}
 
 /**
  * Display a list of packages associated to a node
diff -r b501c2ccfe1a modules/hosting/platform/hosting_platform.module
--- modules/hosting/platform/hosting_platform.module Tue Sep 06 02:29:25 2011 -0400
+++ modules/hosting/platform/hosting_platform.module Thu Sep 08 15:38:31 2011 -0400
@@ -268,7 +268,7 @@ function hosting_platform_insert($node) 
  */
 function hosting_platform_update($node) {
   // if this is a new node or we're adding a new revision,
-  if ($node->revision) {
+  if (isset($node->revision)) {
     hosting_platform_insert($node);
   }
   else {
diff -r b501c2ccfe1a modules/hosting/server/hosting_server.module
--- modules/hosting/server/hosting_server.module Tue Sep 06 02:29:25 2011 -0400
+++ modules/hosting/server/hosting_server.module Thu Sep 08 15:38:31 2011 -0400
@@ -165,9 +165,9 @@ function hosting_server_init_services(&$
 /**
  * Translate a server form submission into populated server objects on the node.*/
 function hosting_server_services_from_post(&$node) {
-  if (is_array($node->services)) {
+  if (!empty($node->services) && is_array($node->services)) {
     foreach (hosting_server_services() as $name => $data) {
-      if (is_array($node->services[$name])) {
+      if (isset($node->services[$name]) && is_array($node->services[$name])) {
         if ($node->services[$name]['type'] !== 'null') {
           if ($service_object = hosting_services_new_object($name, $node->services[$name]['type'], $node, $node->services[$name][$node->services[$name]['type']])) {
             $node->services[$name] = hosting_services_new_object($name, $node->services[$name]['type'], $node, $node->services[$name][$node->services[$name]['type']]);
@@ -313,7 +313,7 @@ function hosting_server_validate(&$node,
  */
 function hosting_server_update($node) {
   // if this is a new node or we're adding a new revision,
-  if ($node->revision) {
+  if (isset($node->revision)) {
     hosting_server_insert($node);
   }
   else {
diff -r b501c2ccfe1a modules/hosting/site/hosting_site.nodeapi.inc
--- modules/hosting/site/hosting_site.nodeapi.inc  Tue Sep 06 02:29:25 2011 -0400
+++ modules/hosting/site/hosting_site.nodeapi.inc  Thu Sep 08 15:38:31 2011 -0400
@@ -165,7 +165,7 @@ function hosting_site_insert(&$node) {
  */
 function hosting_site_update(&$node) {
   // if this is a new node or we're adding a new revision,
-  if ($node->revision) {
+  if (isset($node->revision)) {
     hosting_site_insert($node);
   }
   else {
diff -r b501c2ccfe1a modules/hosting/task/hosting_task.module
--- modules/hosting/task/hosting_task.module Tue Sep 06 02:29:25 2011 -0400
+++ modules/hosting/task/hosting_task.module Thu Sep 08 15:38:31 2011 -0400
@@ -545,7 +545,7 @@ function hosting_task_insert($node) {
   db_query("INSERT INTO {hosting_task} (vid, nid, task_type, task_status, rid, executed, delta) VALUES (%d, %d, '%s', %d, %d, %d, %d)",
     $node->vid, $node->nid, $node->task_type, $node->task_status, $node->rid, $node->executed, $node->delta);
 
-  if (is_array($node->task_args)) {
+  if (!empty($node->task_args) && is_array($node->task_args)) {
     foreach ($node->task_args as $key => $value) {
       db_query("INSERT INTO {hosting_task_arguments} (vid, nid, name, value) VALUES (%d, %d, '%s', '%s')",
            $node->vid, $node->nid, $key, $value);
@@ -569,7 +569,7 @@ function hosting_task_update($node) {
     hosting_task_set_title($node);
     db_query("UPDATE {hosting_task} SET nid=%d, task_type = '%s', task_status = %d, rid = %d, executed=%d, delta=%d WHERE vid=%d",
       $node->nid, $node->task_type, $node->task_status, $node->rid, $node->executed, $node->delta, $node->vid);
-    if (is_array($node->task_args)) {
+    if (!empty($node->task_args) && is_array($node->task_args)) {
       # Wipe out old arguments first, since arguments could theoretically be removed.
       db_query("DELETE FROM {hosting_task_arguments} WHERE vid=%d", $node->vid);
       foreach ($node->task_args as $key => $value) {
