Index: gallery_assist.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/gallery_assist/gallery_assist.module,v
retrieving revision 1.1.2.65
diff -u -p -r1.1.2.65 gallery_assist.module
--- gallery_assist.module	30 Oct 2010 14:30:42 -0000	1.1.2.65
+++ gallery_assist.module	31 Oct 2010 18:35:22 -0000
@@ -1014,10 +1014,12 @@ function _gallery_assist_form(&$node) {
     $limit_message = t('<div id="ga-amount-achaived" class="message warning">'. t('The maximum allowed number of uploads (@max-amount) was achieved.', array('@max-amount' => $node->gallconf[$node->type]['max_items'])) .'</div>');
   }
 
-  $used_space = file_space_used($node->uid);
-  if ($node->gallconf[$node->type]['user_size'] >= $used_space) {
-    $display_field = FALSE;
-    $limit_message = t('<div id="ga-amount-achaived" class="message warning">'. t('Your disk quota of @quota KB was achieved.', array('@quota' => $node->gallconf[$node->type]['user_size'])) .'</div>');
+  if ($node->gallconf[$node->type]['user_size'] > 0) {
+    $used_space = file_space_used($node->uid);
+    if ($node->gallconf[$node->type]['user_size'] >= $used_space) {
+      $display_field = FALSE;
+      $limit_message = t('<div id="ga-amount-achaived" class="message warning">'. t('Your disk quota of @quota KB was achieved.', array('@quota' => $node->gallconf[$node->type]['user_size'])) .'</div>');
+    }
   }
 
   if ($display_field) {
@@ -1273,7 +1275,7 @@ function gallery_assist_settings_submit(
       'pager_align' => $form_state['values']['gallery_assist_'. $type .'_pager_align'],
     );
 
-    variable_set("hide_node_notice_for_{$type}", $form_state['values']['gallery_assist_'. $type .'_hide_node_notice']);
+    variable_set("hide_node_first_notice_for_{$type}", $form_state['values']['gallery_assist_'. $type .'_hide_node_first_notice']);
 
     if (module_exists('imagecache') && is_numeric($form_state['values']['gallery_assist_'. $type .'_pager_presetid'])) {
       $preset = imagecache_preset($gallery_assist_update_data['pager_presetid']);
