diff -Nurp ../homebox.orig/homebox.admin.inc ./homebox.admin.inc
--- ../homebox.orig/homebox.admin.inc	2011-01-10 11:01:58.000000000 -0600
+++ ./homebox.admin.inc	2011-01-10 14:27:26.000000000 -0600
@@ -195,17 +195,17 @@ function homebox_admin_page_validate($fo
   }
 
   // If no imported settings...
-  if (!$form_state['values']['import']) {
+  if (!isset($form_state['values']['import'])) {
     // Filter title
     $form_state['values']['title'] = filter_xss($form_state['values']['title']);
 
     // Make sure a title is present
-    if (!$form_state['values']['title']) {
+    if (empty($form_state['values']['title'])) {
       form_set_error('title', t('You must enter a page title.'));
     }
 
     // Check if the path exists
-    if (!$form_state['values']['path']) {
+    if (empty($form_state['values']['path'])) {
       form_set_error('path', t('You must enter a path.'));
     }
     // If so, make sure it's valid
@@ -214,7 +214,7 @@ function homebox_admin_page_validate($fo
     }
 
     // Check machine name
-    if ($form_state['values']['name'] && $form_state['values']['op'] == t('Add page')) {
+    if (empty($form_state['values']['name']) && isset($form_state['values']['op']) && $form_state['values']['op'] == t('Add page')) {
       homebox_check_name($form_state['values']['name'], 'name');
     }
   }
@@ -635,13 +635,13 @@ function template_preprocess_homebox_adm
       $region = $block['region']['#default_value'];
 
       // Set special classes needed for table drag and drop.
-      $variables['form'][$i]['region']['#attributes']['class'] = 'block-region-select block-region-' . $region;
-      $variables['form'][$i]['weight']['#attributes']['class'] = 'block-weight block-weight-' . $region;
+      $variables['form'][$i]['region']['#attributes']['class'] = array('block-region-select', 'block-region-' . $region);
+      $variables['form'][$i]['weight']['#attributes']['class'] = array('block-weight', 'block-weight-' . $region);
 
-      $variables['block_listing'][$region][$i]->row_class = isset($block['#attributes']['class']) ? $block['#attributes']['class'] : '';
+      $variables['block_listing'][$region][$i]->row_class = isset($block['#attributes']['class']) ? $block['#attributes']['class'] : array();
       $variables['block_listing'][$region][$i]->block_modified = isset($block['#attributes']['class']) && strpos($block['#attributes']['class'], 'block-modified') !== FALSE ? TRUE : FALSE;
       $variables['block_listing'][$region][$i]->block_title =  $block['info']['#value'];
-      $block['region']['#attributes'] = array('class' => 'super');
+      $block['region']['#attributes'] = array('class' => array('super'));
       $variables['block_listing'][$region][$i]->region_select = drupal_render($block['region']) . drupal_render($block['theme']);
       /*
        *$variables['block_listing'][$region][$i]->region_select = drupal_render($block['region']) . drupal_render($block['theme']);
diff -Nurp ../homebox.orig/homebox.module ./homebox.module
--- ../homebox.orig/homebox.module	2011-01-10 11:01:58.000000000 -0600
+++ ./homebox.module	2011-01-10 14:12:05.000000000 -0600
@@ -394,7 +394,7 @@ function homebox_load_blocks_in_regions(
     $block->weight = (int) $block_settings['weight'];
     $block->status = $block_settings['status'] ? TRUE : FALSE;
     $block->open = $block_settings['open'] ? TRUE : FALSE;
-    $block->closable = ($block_settings['closable'] === 0) ? FALSE : TRUE;
+    $block->closable = (isset($block_settings['closable']) && $block_settings['closable'] === 0) ? FALSE : TRUE;
     $block->homebox_classes = _homebox_get_css_classes_for_block($block_settings);
 
     // Check block permissions
@@ -414,7 +414,7 @@ function homebox_load_blocks_in_regions(
         $array = module_invoke($block->module, 'block_view', $block->delta);
 
         // Block.module will return 'n/a' if a custom block has been deleted
-        if ($array['content'] == 'n/a') {
+        if (isset($array['content']) && $array['content'] == 'n/a') {
           // If this is the case, skip this block
           continue;
         }
@@ -476,7 +476,7 @@ function homebox_load_blocks_in_regions(
 
   // Sort each region/column based on key value
   for ($i = 1; $i <= count($regions); $i++) {
-    if (is_array($regions[$i]) && count($regions[$i]) > 0) {
+    if (isset($regions[$i]) && is_array($regions[$i]) && count($regions[$i]) > 0) {
       ksort($regions[$i]);
     }
   }
@@ -1218,7 +1218,7 @@ function _homebox_get_css_classes_for_bl
   $classes = array('homebox-portlet');
 
   // Is the block movable?
-  if (!($block['movable'] === 0)) {
+  if (isset($block['movable']) && !($block['movable'] === 0)) {
     $classes[] = 'homebox-draggable';
   }
 
@@ -1233,7 +1233,7 @@ function _homebox_get_css_classes_for_bl
   }
 
   // Adds CSS if block is unclosable
-  if ($block['closable'] === 0) {
+  if (isset($block['closable']) && $block['closable'] === 0) {
     $classes[] = 'homebox-unclosable';
   }
 
