Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #258 from salihkiraz/patch-2
Browse files Browse the repository at this point in the history
null array fix
  • Loading branch information
fherryfherry authored Mar 21, 2017
2 parents 2effac2 + 0e5f7b8 commit 0fbb833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/CBController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ public function postEditSave($id) {
}

$this->hook_before_edit($this->arr,$id);
$this->arr=array_filter($this->arr); // null array fix
//$this->arr=array_filter($this->arr); // null array fix
DB::table($this->table)->where($this->primary_key,$id)->update($this->arr);

$this->hook_after_edit($id);
Expand Down

0 comments on commit 0fbb833

Please sign in to comment.