Database::escape_string added

skala
Julio Montoya 15 years ago
parent 5c8c675fbe
commit d95edbb4ca
  1. 14
      main/inc/lib/stats.lib.inc.php

@ -39,9 +39,7 @@
*/
/*
==============================================================================
Variables
==============================================================================
*/
// regroup table names for maintenance purpose
@ -171,11 +169,11 @@ function decodeOpenInfos() {
ignore_user_abort($ignore);
}
/***************************************************************************
/*
*
* Utils
*
***************************************************************************/
*/
/**
* @author Sebastien Piraux <piraux_seb@hotmail.com>
@ -187,6 +185,7 @@ function decodeOpenInfos() {
*/
function cleanProcessedRecords( $limit ) {
global $TABLETRACK_OPEN;
$limit = Database::escape_string($limit);
$sql = "UPDATE `".$TABLETRACK_OPEN."`
SET open_remote_host = '',
open_agent = '',
@ -196,11 +195,10 @@ function cleanProcessedRecords( $limit ) {
Database::query("OPTIMIZE TABLE $TABLETRACK_OPEN");
}
/***************************************************************************
*
* Provider
/**
* Provider
*
***************************************************************************/
**/
/**
* @author Sebastien Piraux <piraux_seb@hotmail.com>

Loading…
Cancel
Save