--- node_gallery.inc	2010-01-08 15:16:30.000000000 -0500
+++ node_gallery.inc.new	2010-02-13 08:55:51.000000000 -0500
@@ -46,6 +46,9 @@ function node_gallery_get_types($type = 
   static $ng_types = array();
   
   if (empty($ng_types)) {
+    $ng_types['gallery'] = array();
+    $ng_types['image'] = array();
+
     $ng_configs = node_gallery_get_config();
     foreach ($ng_configs as $key => $value) {
       $ng_types['gallery'][] = $key;
@@ -279,4 +282,4 @@ function node_gallery_delete_image($node
   imagecache_image_flush($node->filepath);
   //Clean up empty dirs, if they exist
   node_gallery_clean_empty_dirs(dirname($node->filepath));
-}
\ No newline at end of file
+}
