| ';
$sql = "SELECT c.label, count(*) as nb";
$sql .= " FROM ".MAIN_DB_PREFIX."categorie_product as cs";
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."categorie as c ON cs.fk_categorie = c.rowid";
@@ -413,7 +413,7 @@ llxFooter();
$db->close();
-/*
+/**
* Print html activity for product type
*
* @param int $product_type Type of product
@@ -422,7 +422,6 @@ $db->close();
function activitytrim($product_type)
{
global $conf, $langs, $db;
- global $bc;
// We display the last 3 years
$yearofbegindate = date('Y', dol_time_plus_duree(time(), -3, "y"));
diff --git a/htdocs/product/inventory/inventory.php b/htdocs/product/inventory/inventory.php
index b6021c82cb8..3f0989251b5 100644
--- a/htdocs/product/inventory/inventory.php
+++ b/htdocs/product/inventory/inventory.php
@@ -31,10 +31,10 @@ $langs->loadLangs(array("stocks", "other"));
// Get parameters
$id = GETPOST('id', 'int');
-$ref = GETPOST('ref', 'alpha');
+$ref = GETPOST('ref', 'alpha');
$action = GETPOST('action', 'aZ09');
-$confirm = GETPOST('confirm', 'alpha');
-$cancel = GETPOST('cancel', 'aZ09');
+$confirm = GETPOST('confirm', 'alpha');
+$cancel = GETPOST('cancel', 'aZ09');
$contextpage = GETPOST('contextpage', 'aZ') ?GETPOST('contextpage', 'aZ') : 'myobjectcard'; // To manage different context of search
$backtopage = GETPOST('backtopage', 'alpha');
diff --git a/htdocs/product/stats/commande.php b/htdocs/product/stats/commande.php
index 71c1b0f1ef7..9898c13f21b 100644
--- a/htdocs/product/stats/commande.php
+++ b/htdocs/product/stats/commande.php
@@ -164,26 +164,22 @@ if ($id > 0 || !empty($ref))
{
$num = $db->num_rows($result);
- if (!empty($id))
- $option .= '&id='.$product->id;
- if (!empty($search_month))
- $option .= '&search_month='.$search_month;
- if (!empty($search_year))
- $option .= '&search_year='.$search_year;
- if ($limit > 0 && $limit != $conf->liste_limit) $option .= '&limit='.urlencode($limit);
+ if ($limit > 0 && $limit != $conf->liste_limit) $option .= '&limit='.urlencode($limit);
+ if (!empty($id)) $option .= '&id='.$product->id;
+ if (!empty($search_month)) $option .= '&search_month='.urlencode($search_month);
+ if (!empty($search_year)) $option .= '&search_year='.urlencode($search_year);
print ' |