fix for bug [ 1059619 ] SQL Error: cannot be null

This commit is contained in:
Ralf Becker 2004-11-04 21:39:23 +00:00
parent 355d32ec28
commit d6f9fd8a99

View File

@ -372,6 +372,8 @@
$to_write[$key] = $this->data[$key] = $val; // update internal data $to_write[$key] = $this->data[$key] = $val; // update internal data
} }
} }
if (!isset($to_write['info_id_parent'])) $to_write['info_id_parent'] = 0; // must not be null
if (($this->data['info_id'] = $info_id)) if (($this->data['info_id'] = $info_id))
{ {
$this->db->update($this->info_table,$to_write,array('info_id'=>$info_id),__LINE__,__FILE__); $this->db->update($this->info_table,$to_write,array('info_id'=>$info_id),__LINE__,__FILE__);