Skip to content

Commit

Permalink
fix couple typos
Browse files Browse the repository at this point in the history
  • Loading branch information
avbdr committed Oct 15, 2015
1 parent 8218443 commit 44c8895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function __unset ($name) {
*/
private function JsonBuilder () {
$this->returnType = 'Json';
return $this;
return $return;
}

/**
Expand Down Expand Up @@ -233,7 +233,7 @@ public function insert () {
return false;

$id = $this->db->insert ($this->dbTable, $sqlData);
if (!empty ($this->primaryKey) && !isset($this->data[$this->primaryKey]))
if (!empty ($this->primaryKey) && empty ($this->data[$this->primaryKey]))
$this->data[$this->primaryKey] = $id;
$this->isNew = false;

Expand Down

0 comments on commit 44c8895

Please sign in to comment.