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"; }