From c0c28b5af13c2607cd51c65503c9e8077930216a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 8 Dec 2006 07:10:27 +0000 Subject: [PATCH] fix for PostgreSQL, thanks to Mark Stosberg --- infolog/inc/class.soinfolog.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infolog/inc/class.soinfolog.inc.php b/infolog/inc/class.soinfolog.inc.php index de1bd7f97d..388dc4af41 100644 --- a/infolog/inc/class.soinfolog.inc.php +++ b/infolog/inc/class.soinfolog.inc.php @@ -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);