Simplify whitelist logic.

This commit is contained in:
mark_story 2013-07-16 19:33:06 -04:00
parent d4db64ff26
commit a8f4ec0450

View file

@ -377,11 +377,8 @@ class PaginatorComponent extends Component {
$inWhitelist = in_array($field, $whitelist, true);
if (!$inWhitelist) {
$options['order'] = null;
return $options;
}
if ($inWhitelist) {
return $options;
}
return $options;
}
if (!empty($options['order']) && is_array($options['order'])) {