Bug dans fonction save

This commit is contained in:
Dany De Bontridder 2013-09-23 16:25:12 +00:00
parent fa3f331c52
commit e08a0c946e

View file

@ -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();