Browse Source

#133 Issue on object creation with fields set to 'null'

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@444 a333f486-631f-4898-b8df-5754b55c2be0
romainq 15 years ago
parent
commit
8624f5de85
1 changed files with 5 additions and 0 deletions
  1. 5 0
      core/cmdbsource.class.inc.php

+ 5 - 0
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();