From f54a641cb1fbbafac5d545124775f8a50d656c3c Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 25 Aug 2003 10:54:14 +0000 Subject: [PATCH] Nettoyage du code --- htdocs/product/album/fiche.php | 2 -- htdocs/product/album/index.php | 8 +++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/product/album/fiche.php b/htdocs/product/album/fiche.php index 9559e9e0c27..584e4d3d37a 100644 --- a/htdocs/product/album/fiche.php +++ b/htdocs/product/album/fiche.php @@ -24,8 +24,6 @@ require("./pre.inc.php"); llxHeader(); -$db = new Db(); - if ($action == 'add') { $album = new Album($db); diff --git a/htdocs/product/album/index.php b/htdocs/product/album/index.php index f0a55a17071..2aa65f8c0dd 100644 --- a/htdocs/product/album/index.php +++ b/htdocs/product/album/index.php @@ -24,11 +24,13 @@ require("./pre.inc.php"); llxHeader(); -$db = new Db(); -if ($sortfield == "") { +if ($sortfield == "") +{ $sortfield="lower(a.title)"; } -if ($sortorder == "") { + +if ($sortorder == "") +{ $sortorder="ASC"; }