Fix: phpcheckstyle

This commit is contained in:
Laurent Destailleur 2014-12-04 01:11:13 +01:00
parent 557dcf9a20
commit 475d749a97
2 changed files with 5 additions and 5 deletions

View File

@ -543,10 +543,10 @@ class ProductFournisseur extends Product
/**
* Sets the price expression
*
* @param string $expression Expression
* @return int <0 if KO, >0 if OK
* @param string $expression_id Expression
* @return int <0 if KO, >0 if OK
*/
function set_price_expression($expression_id)
function setPriceExpression($expression_id)
{
global $conf;
@ -557,7 +557,7 @@ class ProductFournisseur extends Product
$sql.= " SET fk_price_expression = ".$expression_id;
$sql.= " WHERE rowid = ".$this->product_fourn_price_id;
dol_syslog(get_class($this)."::set_price_expression", LOG_DEBUG);
dol_syslog(get_class($this)."::setPriceExpression", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)

View File

@ -196,7 +196,7 @@ if ($action == 'updateprice' && GETPOST('cancel') <> $langs->trans("Cancel"))
}
}
if (! $error && ! empty($conf->dynamicprices->enabled)) {
$ret=$product->set_price_expression($price_expression);
$ret=$product->setPriceExpression($price_expression);
if ($ret < 0)
{
$error++;