), __FILE__, __LINE__);
// Get message
- $msg = getMessage('ADMIN_PAYOUT_TYPE_ADDED');
+ $message = getMessage('ADMIN_PAYOUT_TYPE_ADDED');
} else {
// Free memory
SQL_FREERESULT($result);
// Does already exist
- $msg = "<div class=\"admin_failed\">{--ADMIN_PAYOUT_TYPE_ALREADY--}</div>";
+ $message = "<div class=\"admin_failed\">{--ADMIN_PAYOUT_TYPE_ALREADY--}</div>";
}
}
runFilterChain('run_sqls');
// Get message
- $msg = getMessage('ADMIN_PAYOUT_ENTRIES_CHANGED');
+ $message = getMessage('ADMIN_PAYOUT_ENTRIES_CHANGED');
} else {
$display = false; //Suppress any other outputs
$OUT = ''; $SW = 2;
runFilterChain('run_sqls');
// Get message
- $msg = getMessage('ADMIN_PAYOUT_ENTRIES_DELETED');
+ $message = getMessage('ADMIN_PAYOUT_ENTRIES_DELETED');
} else {
$display = false; //Suppress any other outputs
$OUT = ''; $SW = 2;
}
}
-if (!empty($msg)) {
+if (!empty($message)) {
// Output message
- LOAD_TEMPLATE('admin_settings_saved', false, $msg);
-}
+ LOAD_TEMPLATE('admin_settings_saved', false, $message);
+} // END - if
// Payout types
-$result_type = SQL_QUERY("SELECT id, type, rate, min_points, from_account FROM `{!_MYSQL_PREFIX!}_payout_types` ORDER BY type", __FILE__, __LINE__);
+$result_type = SQL_QUERY("SELECT
+ `id`, `type`, `rate`, `min_points`, `from_account`
+FROM
+ `{!_MYSQL_PREFIX!}_payout_types`
+ORDER BY
+ `type` ASC", __FILE__, __LINE__);
if ((SQL_NUMROWS($result_type) > 0) && ($display)) {
// List all payout types