File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ public function __unset ($name) {
186
186
*/
187
187
private function JsonBuilder () {
188
188
$ this ->returnType = 'Json ' ;
189
- return $ this ;
189
+ return $ return ;
190
190
}
191
191
192
192
/**
@@ -233,7 +233,7 @@ public function insert () {
233
233
return false ;
234
234
235
235
$ 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 ]))
237
237
$ this ->data [$ this ->primaryKey ] = $ id ;
238
238
$ this ->isNew = false ;
239
239
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ $data = Array ("login" => "admin",
126
126
"createdAt" => $db->now(),
127
127
"updatedAt" => $db->now(),
128
128
);
129
- $updateColumns = Array ("updateAt ");
129
+ $updateColumns = Array ("updatedAt ");
130
130
$lastInsertId = "id";
131
131
$db->onDuplicate($updateColumns, $lastInsertId);
132
132
$id = $db->insert ('users', $data);
You can’t perform that action at this time.
0 commit comments