Commit 44c8895a authored by Alexander Butenko's avatar Alexander Butenko

fix couple typos

parent 8218443c
......@@ -186,7 +186,7 @@ class dbObject {
*/
private function JsonBuilder () {
$this->returnType = 'Json';
return $this;
return $return;
}
/**
......@@ -233,7 +233,7 @@ class dbObject {
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment