Browse Source

Merge branch 'cero-dev' of https://github.com/causefx/Organizr into cero-dev

Cerothen 9 years ago
parent
commit
3a53a123a6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      functions.php

+ 2 - 2
functions.php

@@ -2,7 +2,7 @@
 
 // ===================================
 // Define Version
- define('INSTALLEDVERSION', '1.341');
+ define('INSTALLEDVERSION', '1.342');
 // ===================================
 
 // Debugging output functions
@@ -1255,7 +1255,7 @@ function buildSettings($array) {
 					if (this.type == \'checkbox\') {
 						newVals[this.name] = this.checked;
 					} else {
-						if (this.value && !RegExp(\'^\'+this.pattern+\'$\').test(this.value)) { errorFields.push(this.name); }
+						if (this.value && this.pattern && !RegExp(\'^\'+this.pattern+\'$\').test(this.value)) { errorFields.push(this.name); }
 						var fieldVal = $(this).val();
 						if (typeof fieldVal == \'object\') {
 							if (typeof fieldVal.join == \'function\') {