From 3dfa4e5fe67fa47bcc47b3cb4da83e99798cd3a5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 21 Jul 2010 13:16:36 +0000 Subject: [PATCH] allow null as value in assign() --- phpgwapi/inc/class.egw_json.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_json.inc.php b/phpgwapi/inc/class.egw_json.inc.php index 8f0b882854..0a6ba7bf76 100644 --- a/phpgwapi/inc/class.egw_json.inc.php +++ b/phpgwapi/inc/class.egw_json.inc.php @@ -327,7 +327,7 @@ class egw_json_response */ public function assign($id, $key, $value) { - if (is_string($id) && is_string($key) && (is_string($value) || is_numeric($value))) + if (is_string($id) && is_string($key) && (is_string($value) || is_numeric($value) || is_null($value))) { $this->addGeneric('assign', array( 'id' => $id,