- if (isset($value) &&
- (CRM_Utils_Type::validate($value, $type, $abort, $name) === NULL)
- ) {
- $value = NULL;
+ if (isset($value)) {
+ $value = CRM_Utils_Type::validate($value, $type, $abort, $name);
// Whilst the following is a fallible universal test for urlencoded URLs,
// thankfully the "action" URL has a limited and predictable form and
// therefore this comparison is sufficient for our purposes.
// Whilst the following is a fallible universal test for urlencoded URLs,
// thankfully the "action" URL has a limited and predictable form and
// therefore this comparison is sufficient for our purposes.