// Update counter
$_CONFIG['mad_counter'] = $total;
$_CONFIG['last_mad'] = time();
- $result_mad = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_config SET mad_timestamp=%d, mad_count='%s' WHERE config=0 LIMIT 1",
+ $result_mad = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_config SET mad_timestamp=%s, mad_count='%s' WHERE config=0 LIMIT 1",
array($_CONFIG['last_mad'], $_CONFIG['mad_counter']), __FILE__, __LINE__);
// Destroy cache