Project

General

Profile

Revision ffa856dc

Added by Jocelyn Delande about 9 years ago

added params generation to upload

View differences:

class/FormValidator.class.php
112 112
	  }
113 113
  }
114 114
);
115
// Intended to validate checkbox which takes NULL for unchecked
116
FormValidator::register(
117
  'boolean',
118
  function ($v) {
119
	  if ($v == NULL) {
120
		  return false;
121
	  } else {
122
		  return true;
123
	  }
124
  }
125
);
115 126

  
116 127
?>

Also available in: Unified diff