diff options
Diffstat (limited to 'admin/configuration.php')
-rw-r--r-- | admin/configuration.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/admin/configuration.php b/admin/configuration.php index 4aad5f49d..4b5329139 100644 --- a/admin/configuration.php +++ b/admin/configuration.php @@ -152,9 +152,17 @@ if (isset($_POST['submit'])) { if ( !empty($_POST['order_by']) ) { + $used = array(); foreach ($_POST['order_by'] as $i => $val) { - if (empty($val)) unset($_POST['order_by'][$i]); + if (empty($val) or isset($used[$val])) + { + unset($_POST['order_by'][$i]); + } + else + { + $used[$val] = true; + } } if ( !count($_POST['order_by']) ) { |