]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/order_functions.php
Moved all FILTER_FOO() filter functions to an own include directory:
[mailer.git] / inc / libs / order_functions.php
index 121265189de1fe2b8cf528f236eb8debe6c09873..ef7549cf848bb52a34fe0232f7fa8d59ee9580a7 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -46,8 +46,16 @@ function addOrderSelectionOptions ($default) {
        $LIST = array('userid', 'zip', 'country', 'email', 'birth_year', 'last_online', 'ref_clicks', 'total_logins', 'mail_orders');
        $OUT = '';
        foreach ($LIST as $item) {
+               // Defaul selection
                $selected = '';
                if ($item == $default) $selected = ' selected="selected"';
+
+               // 'ref_clicks' needs to be rewritten to 'referal_clicks'
+               if ($item == 'ref_clicks') {
+                       $item = 'referal_clicks';
+               } // END - if
+
+               // Add option line
                $OUT .= '<option value="' . $item . '"' . $selected . '>{--ADMIN_ORDER_SELECT_COLUMN_' . strtoupper($item) . '--}</option>';
        } // END - foreach