Bug dans fonction save
This commit is contained in:
parent
fa3f331c52
commit
e08a0c946e
1 changed files with 2 additions and 1 deletions
|
|
@ -90,7 +90,8 @@ class phpcompta_sql
|
|||
$this->load();
|
||||
}
|
||||
public function save() {
|
||||
if ( $this->p_id == -1 )
|
||||
$pk=$this->primary_key;
|
||||
if ( $this->$pk== -1 )
|
||||
$this->insert();
|
||||
else
|
||||
$this->update();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue