Skip to content

Commit 44c8895

Browse files
committed
fix couple typos
1 parent 8218443 commit 44c8895

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dbObject.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function __unset ($name) {
186186
*/
187187
private function JsonBuilder () {
188188
$this->returnType = 'Json';
189-
return $this;
189+
return $return;
190190
}
191191

192192
/**
@@ -233,7 +233,7 @@ public function insert () {
233233
return false;
234234

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

0 commit comments

Comments
 (0)