Révision ffa856dc
Ajouté par Jocelyn Delande il y a presque 11 ans
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 |
?> |
Formats disponibles : Unified diff
added params generation to upload