From f27298c927488fea7cd0541331473e9c5b2311b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=93=9D=E5=B0=8F=E7=81=B0?= Date: Mon, 13 Nov 2017 11:04:43 +0800 Subject: [PATCH] with php5.* syntax --- src/Editable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Editable.php b/src/Editable.php index 6c95787..0ab945b 100644 --- a/src/Editable.php +++ b/src/Editable.php @@ -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;