From d6f9fd8a99d2fedaf3d1bdb4f5e6135a2d2bae93 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 4 Nov 2004 21:39:23 +0000 Subject: [PATCH] fix for bug [ 1059619 ] SQL Error: cannot be null --- infolog/inc/class.soinfolog.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infolog/inc/class.soinfolog.inc.php b/infolog/inc/class.soinfolog.inc.php index 820c8f308d..1185c7dfeb 100644 --- a/infolog/inc/class.soinfolog.inc.php +++ b/infolog/inc/class.soinfolog.inc.php @@ -372,6 +372,8 @@ $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)) { $this->db->update($this->info_table,$to_write,array('info_id'=>$info_id),__LINE__,__FILE__);