fix for PostgreSQL, thanks to Mark Stosberg

This commit is contained in:
Ralf Becker 2006-12-08 07:13:36 +00:00
parent b7a992856e
commit 377b9aaf30

View File

@ -398,6 +398,9 @@
$to_write[$key] = $this->data[$key] = $val; // update internal data
}
}
// writing no price as SQL NULL (required by postgres)
if ($to_write['info_price'] === '') $to_write['info_price'] = NULL;
if (($this->data['info_id'] = $info_id))
{
$where = array('info_id' => $info_id);