From 5a2867dc97d9e9b847359f7256b2e9ab6d4b2dba Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 22 Aug 2011 22:07:09 +0000 Subject: [PATCH] Uniformize code --- htdocs/product/liste.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/htdocs/product/liste.php b/htdocs/product/liste.php index 9b0b1870cdf..02e673dc621 100644 --- a/htdocs/product/liste.php +++ b/htdocs/product/liste.php @@ -21,7 +21,7 @@ * \file htdocs/product/liste.php * \ingroup produit * \brief Page to list products and services - * \version $Id: liste.php,v 1.157 2011/08/22 22:04:24 eldy Exp $ + * \version $Id: liste.php,v 1.158 2011/08/22 22:07:09 eldy Exp $ */ require("../main.inc.php"); @@ -33,6 +33,7 @@ if ($conf->categorie->enabled) require_once(DOL_DOCUMENT_ROOT."/categories/class $langs->load("products"); $langs->load("stocks"); +$action = GETPOST('action'); $sref=GETPOST("sref"); $sbarcode=GETPOST("sbarcode"); $snom=GETPOST("snom"); @@ -56,9 +57,6 @@ if (! $sortorder) $sortorder="ASC"; $limit = $conf->liste_limit; -$action = GETPOST('action'); - -// Security check // Get object canvas (By default, this is not defined, so standard usage of dolibarr) //if ($id) $object->getCanvas($id); @@ -483,5 +481,5 @@ else $db->close(); -llxFooter('$Date: 2011/08/22 22:04:24 $ - $Revision: 1.157 $'); +llxFooter('$Date: 2011/08/22 22:07:09 $ - $Revision: 1.158 $'); ?>