}
$this->_formValues[$element] = array('IN' => $value);
}
- elseif ((substr($value, 0, 1) == '%') || (substr($value, -1, 1) == '%')) {
+ elseif (strstr($value, '%')) {
$this->_formValues[$element] = array('LIKE' => $value);
}
}
}
elseif (($htmlType == 'TextArea' ||
($htmlType == 'Text' && $dataType == 'String')
- ) &&
- ((substr($formValues[$key], 0, 1) == '%') ||
- (substr($formValues[$key], -1, 1) == '%')
- )
+ ) && strstr($formValues[$key], '%')
) {
$formValues[$key] = array('LIKE' => $formValues[$key]);
}