Index: webform.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/webform.module,v
retrieving revision 1.231
diff -u -r1.231 webform.module
--- webform.module	18 Jun 2010 01:19:51 -0000	1.231
+++ webform.module	18 Jun 2010 01:46:55 -0000
@@ -1217,7 +1217,7 @@
     module_load_include('inc', 'webform', 'includes/webform.submissions');
 
     // Disable the form if the limit is exceeded and page cache is not active.
-    if (($limit_exceeded = _webform_submission_limit_check($node)) && ($user->uid != 0 || variable_get('cache', CACHE_DISABLED) == CACHE_DISABLED)) {
+    if (($limit_exceeded = _webform_submission_limit_check($node)) && ($user->uid != 0 || variable_get('cache', 0) == 0)) {
       $enabled = FALSE;
     }
   }
@@ -1314,7 +1314,7 @@
   $allowed_roles = $variables['allowed_roles'];
 
   $type = 'notice';
-  $cached = $user->uid == 0 && variable_get('cache', CACHE_DISABLED);
+  $cached = $user->uid == 0 && variable_get('cache', 0);
 
   // If not allowed to submit the form, give an explanation.
   if (array_search(TRUE, $allowed_roles) === FALSE && $user->uid != 1) {
