Commit a539a3aa authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#56457, unnessary trim(). patch by Zen

parent f3be5516
......@@ -1014,10 +1014,9 @@ function search_form_validate($form_id, $form_values) {
*/
function search_form_submit($form_id, $form_values) {
$keys = $form_values['processed_keys']['#ref'];
if (trim($keys) == '') {
if ($keys == '') {
form_set_error('keys', t('Please enter some keywords.'));
// Fall through to the drupal_goto() call.
$keys = '';
}
$type = $form_values['module'] ? $form_values['module'] : 'node';
......
......@@ -1014,10 +1014,9 @@ function search_form_validate($form_id, $form_values) {
*/
function search_form_submit($form_id, $form_values) {
$keys = $form_values['processed_keys']['#ref'];
if (trim($keys) == '') {
if ($keys == '') {
form_set_error('keys', t('Please enter some keywords.'));
// Fall through to the drupal_goto() call.
$keys = '';
}
$type = $form_values['module'] ? $form_values['module'] : 'node';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment