break;
default:
+ DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown error code %s detected.", $_GET['msg']));
$MSG = UNKNOWN_CODE_1.$_GET['msg'].UNKNOWN_CODE_2;
break;
}
- if (!empty($MSG))
- {
+
+ if (!empty($MSG)) {
// We got system message so we drop it out to the user
LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
- }
+ } // END - if
// Load all email types...
- while ($typeS[] = SQL_FETCHROW($result))
- {
+ while ($typeS[] = SQL_FETCHROW($result)) {
// Nothing to do here... ;-)
- }
+ } // END - while
// Free memory
SQL_FREERESULT($result);
case "ORDER": // He is allowed to send as much as he setup the receiving value
define('ORDER_MAX_VALUE', ORDER_ALLOWED_RECEIVE_1.$ALLOWED.ORDER_ALLOWED_RECEIVE_2.$MAXI.ORDER_ALLOWED_RECEIVE_3);
break;
+
+ default: // Unknown/invalid
+ DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown order_mas_full config detected.", $_CONFIG['order_max_full']));
+ define('ORDER_MAX_VALUE', ORDER_ALLOED_UNKNOWN);
+ break;
}
// Load final template