? 1017100-validation-fix.patch
Index: role_limits.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/role_limits/role_limits.module,v
retrieving revision 1.10.2.1
diff -u -p -r1.10.2.1 role_limits.module
--- role_limits.module	6 Jan 2011 03:21:07 -0000	1.10.2.1
+++ role_limits.module	6 Jan 2011 12:16:45 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: role_limits.module,v 1.10.2.1 2011/01/06 03:21:07 webkenny Exp $
+// $Id: role_limits.module,v 1.1.2.2 2010/08/17 09:21:41 webkenny Exp $
 /**
  *
  * @file
@@ -127,7 +127,7 @@ function role_limits_admin_settings_vali
       form_set_error($form_state['values']["role_limits_limit_$rid"], 'Please enter a whole number to represent the limit.');
     }
     if ($limit < role_limits_get_role_count($rid) && $limit > 0) {
-      form_set_error($form_values["role_limits_limit_$rid"], 'You can not enter a number less than the number of existing users with this role.');
+      form_set_error($form_state['values']["role_limits_limit_$rid"], 'You can not enter a number less than the number of existing users with this role.');
     }
   }
 }
