fix for PostgreSQL, thanks to Mark Stosberg

This commit is contained in:
Ralf Becker 2006-12-08 07:10:27 +00:00
parent ef10e5af0a
commit c0c28b5af1

View File

@ -478,6 +478,9 @@ class soinfolog // DB-Layer
$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);