Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
with php5.* syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
蓝小灰 committed Nov 13, 2017
1 parent ce77ae4 commit f27298c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Editable.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function __construct($row = null, $pk = "id", $hidden = [], $ajax = '')
throw new EditableException(null, EditableException::NO_DATA);

$this->row = $row;
$this->pk = $this->row[$pk] ?? null;
$this->pk = isset($this->row[$pk]) ? $this->row[$pk] : null;
$this->hidden = array_flip($hidden);
$this->ajax = $ajax;

Expand Down

0 comments on commit f27298c

Please sign in to comment.