diff --git a/htdocs/product/index.php b/htdocs/product/index.php
index d2f2326f2ae..d8d60835966 100644
--- a/htdocs/product/index.php
+++ b/htdocs/product/index.php
@@ -31,7 +31,7 @@ require_once(DOL_DOCUMENT_ROOT.'/product.class.php');
if (!$user->rights->produit->lire && !$user->rights->service->lire)
accessforbidden();
-$staticproduct=new Product($db);
+$product_static = new Product($db);
@@ -208,10 +208,10 @@ if ($result)
$var=!$var;
print "
";
print '| ';
- $staticproduct->id=$objp->rowid;
- $staticproduct->ref=$objp->ref;
- $staticproduct->type=$objp->fk_product_type;
- print $staticproduct->getNomUrl(1,'',16);
+ $product_static->id=$objp->rowid;
+ $product_static->ref=$objp->ref;
+ $product_static->type=$objp->fk_product_type;
+ print $product_static->getNomUrl(1,'',16);
print " | \n";
print ''.dol_trunc($objp->label,32).' | ';
print "";
diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php
index 3381c340566..20335691b61 100644
--- a/htdocs/societe.class.php
+++ b/htdocs/societe.class.php
@@ -1165,10 +1165,9 @@ class Societe extends CommonObject
$sql .= " VALUES (".$this->db->idate(mktime()).",".$this->id.",'".$price_level."',".$user->id.")";
if (! $this->db->query($sql) )
- {
- dol_print_error($this->db);
- }
-
+ {
+ dol_print_error($this->db);
+ }
}
}
|