Fix bug reported by scrutinizer
This commit is contained in:
parent
8493d9f62e
commit
47713e0264
@ -59,7 +59,6 @@ class Tva extends CommonObject
|
|||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->element = 'tva';
|
$this->element = 'tva';
|
||||||
$this->table_element = 'tva';
|
$this->table_element = 'tva';
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -149,7 +148,7 @@ class Tva extends CommonObject
|
|||||||
* @param int $notrigger 0=no, 1=yes (no update trigger)
|
* @param int $notrigger 0=no, 1=yes (no update trigger)
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function update($user=null, $notrigger=0)
|
function update($user, $notrigger=0)
|
||||||
{
|
{
|
||||||
global $conf, $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
|
|||||||
@ -2986,7 +2986,7 @@ class ContratLigne extends CommonObjectLine
|
|||||||
*/
|
*/
|
||||||
public function insert($notrigger = 0)
|
public function insert($notrigger = 0)
|
||||||
{
|
{
|
||||||
global $user;
|
global $conf, $user;
|
||||||
|
|
||||||
// Insertion dans la base
|
// Insertion dans la base
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."contratdet";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."contratdet";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user