allow null as value in assign()

This commit is contained in:
Ralf Becker 2010-07-21 13:16:36 +00:00
parent da54059fd1
commit 3dfa4e5fe6

View File

@ -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,