Fix: uniformize code
This commit is contained in:
parent
9314c8271b
commit
9e1100ece3
@ -31,7 +31,7 @@ require_once(DOL_DOCUMENT_ROOT.'/product.class.php');
|
|||||||
if (!$user->rights->produit->lire && !$user->rights->service->lire)
|
if (!$user->rights->produit->lire && !$user->rights->service->lire)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
$staticproduct=new Product($db);
|
$product_static = new Product($db);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -208,10 +208,10 @@ if ($result)
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print '<td nowrap="nowrap">';
|
print '<td nowrap="nowrap">';
|
||||||
$staticproduct->id=$objp->rowid;
|
$product_static->id=$objp->rowid;
|
||||||
$staticproduct->ref=$objp->ref;
|
$product_static->ref=$objp->ref;
|
||||||
$staticproduct->type=$objp->fk_product_type;
|
$product_static->type=$objp->fk_product_type;
|
||||||
print $staticproduct->getNomUrl(1,'',16);
|
print $product_static->getNomUrl(1,'',16);
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
print '<td>'.dol_trunc($objp->label,32).'</td>';
|
print '<td>'.dol_trunc($objp->label,32).'</td>';
|
||||||
print "<td>";
|
print "<td>";
|
||||||
|
|||||||
@ -1165,10 +1165,9 @@ class Societe extends CommonObject
|
|||||||
$sql .= " VALUES (".$this->db->idate(mktime()).",".$this->id.",'".$price_level."',".$user->id.")";
|
$sql .= " VALUES (".$this->db->idate(mktime()).",".$this->id.",'".$price_level."',".$user->id.")";
|
||||||
|
|
||||||
if (! $this->db->query($sql) )
|
if (! $this->db->query($sql) )
|
||||||
{
|
{
|
||||||
dol_print_error($this->db);
|
dol_print_error($this->db);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user