add null value to set() function

pull/2637/head
Isaac Connor 2019-06-05 10:22:20 -04:00
parent 4b8a2a94e3
commit 08cc4e0383
1 changed files with 2 additions and 0 deletions

View File

@ -361,6 +361,8 @@ private $control_fields = array(
$this->{$k} = $v;
} else if ( is_bool( $v ) ) {
$this->{$k} = $v;
} else if ( is_null( $v ) ) {
$this->{$k} = $v;
} else {
Error( "Unknown type $k => $v of var " . gettype( $v ) );
$this->{$k} = $v;