We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8218443 commit 44c8895Copy full SHA for 44c8895
dbObject.php
@@ -186,7 +186,7 @@ public function __unset ($name) {
186
*/
187
private function JsonBuilder () {
188
$this->returnType = 'Json';
189
- return $this;
+ return $return;
190
}
191
192
/**
@@ -233,7 +233,7 @@ public function insert () {
233
return false;
234
235
$id = $this->db->insert ($this->dbTable, $sqlData);
236
- if (!empty ($this->primaryKey) && !isset($this->data[$this->primaryKey]))
+ if (!empty ($this->primaryKey) && empty ($this->data[$this->primaryKey]))
237
$this->data[$this->primaryKey] = $id;
238
$this->isNew = false;
239
0 commit comments