diff --git a/htdocs/product/index.php b/htdocs/product/index.php
index d2f2326f2ae181ea5357f6fc955a479066590cae..d8d608359661fc042accb29f5bb73423df50c9e9 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 "<tr $bc[$var]>";
 	  print '<td nowrap="nowrap">';
-	  $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 "</td>\n";
 	  print '<td>'.dol_trunc($objp->label,32).'</td>';
 	  print "<td>";
diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php
index 3381c340566a4f4a591af801cd6fc7c37e5cf82f..20335691b6147a9a447bb73541ca40ad2e46760f 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);
+			}
 		}
 	}