diff --git a/modules/user/user.module b/modules/user/user.module index 1ccb4a10375..98974954f60 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -2555,10 +2555,15 @@ function user_filter_form() { ); foreach ($session as $filter) { list($type, $value) = $filter; - $string = ($i++ ? 'and where %a is %b' : '%a is %b'); // Merge an array of arrays into one if necessary. $options = $type == 'permission' ? call_user_func_array('array_merge', $filters[$type]['options']) : $filters[$type]['options']; - $form['filters']['current'][] = array('#value' => t($string, array('%a' => $filters[$type]['title'] , '%b' => $options[$value]))); + $params = array('%property' => $filters[$type]['title'] , '%value' => $options[$value]); + if ($i++ > 0) { + $form['filters']['current'][] = array('#value' => t('and where %property is %value', $params)); + } + else { + $form['filters']['current'][] = array('#value' => t('%property is %value', $params)); + } } foreach ($filters as $key => $filter) {