From d854c72243cd28de4360caae8e49100388269a30 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Wed, 9 Jun 2010 08:26:30 +0000 Subject: [PATCH] #133 Issue on object creation with fields set to 'null' SVN:trunk[444] --- core/cmdbsource.class.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/cmdbsource.class.inc.php b/core/cmdbsource.class.inc.php index f50f021b7..499c50117 100644 --- a/core/cmdbsource.class.inc.php +++ b/core/cmdbsource.class.inc.php @@ -159,6 +159,11 @@ class CMDBSource // otherwise and if there is a mix of strings and numbers, the clause // would always be false + if (is_null($value)) + { + return 'NULL'; + } + if (is_array($value)) { $aRes = array();