Skip to content

Commit

Permalink
Merge pull request #16 from eflorea/ability-to-make-field-null
Browse files Browse the repository at this point in the history
add ability to make a field null
  • Loading branch information
eflorea committed Mar 23, 2018
2 parents b1c64ea + d312ba7 commit 76488fc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/RPC/Db/Table/Row.php
Original file line number Diff line number Diff line change
Expand Up @@ -834,14 +834,15 @@ public function __call( $name, $arguments = false )
{
if( ! method_exists( $this, $name ) )
{
if( $arguments &&
isset( $arguments[0] ) )
if( $arguments )
{
$this[$name] = $arguments[0];
if( isset( $arguments[0] ) ||
$arguments[0] === NULL )
{
$this[$name] = $arguments[0];
}
}



//check if property exists
if( isset( $this[$name] ) ||
isset( $this->extrafields[$name] ) )
Expand Down

0 comments on commit 76488fc

Please sign in to comment.