Nettoyage du code

This commit is contained in:
Rodolphe Quiedeville 2003-08-27 11:21:33 +00:00
parent 718fb2c694
commit e8e3230b6c
4 changed files with 2 additions and 7 deletions

View File

@ -33,7 +33,6 @@ require("../../../projetdon.class.php");
require("../../../don.class.php");
setlocale(LC_TIME,"fr_FR");
$db = new Db();
$don = new Don($db);
$don->id = $rowid;

View File

@ -23,8 +23,6 @@ require("./pre.inc.php");
llxHeader();
$db = new Db();
print_titre("Statistiques");
$sql = "SELECT d.amount";

View File

@ -23,9 +23,7 @@
function facture_get_num($objsoc=0)
{
$db = new Db();
global $db;
$date = strftime("%Y%m", time());
$sql = "SELECT count(*) FROM llx_facture";

View File

@ -23,8 +23,8 @@
function facture_get_num($objsoc=0)
{
global $db;
$db = new Db();
$sql = "SELECT count(*) FROM llx_facture";
if ( $db->query($sql) )