Default of TRUE is good here
}
CRM_Utils_Type::validateAll($contactIds, 'Positive');
if (!empty($contactIds)) {
- $this->_where[0][] = " ( contact_a.id IN (" . implode(',', $contactIds) . " ) ) ";
+ $this->_where[0][] = ' ( contact_a.id IN (' . implode(',', $contactIds) . " ) ) ";
}
}
/**
* Helper function to call validate on arrays
*
+ * @param mixed $data
+ * @param string $type
+ *
+ * @return mixed
+ *
+ * @throws \CRM_Core_Exception
+ *
* @see validate
*/
- public static function validateAll($data, $type, $abort = TRUE) {
+ public static function validateAll($data, $type) {
foreach ($data as $key => $value) {
- $data[$key] = CRM_Utils_Type::validate($value, $type, $abort);
+ $data[$key] = CRM_Utils_Type::validate($value, $type);
}
return $data;
}