allow null as value in assign()

This commit is contained in:
Ralf Becker 2010-07-21 13:17:37 +00:00
parent 0e79cf6475
commit 40092896a5

View File

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