Skip to content
This repository was archived by the owner on Aug 17, 2019. It is now read-only.

Commit 7aa1bc2

Browse files
committed
逻辑错误
1 parent d25ee7b commit 7aa1bc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Traits/Admin/ActionButtonTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ trait ActionButtonTrait
1010
*/
1111
public function editButton($actionModel,$id = null)
1212
{
13-
if (empty(!$id)){
13+
if (!empty($id)){
1414
$this->id = $id;
1515
}
1616
if (auth('admin')->user()->can("{$actionModel}.edit")){
@@ -21,7 +21,7 @@ public function editButton($actionModel,$id = null)
2121

2222
public function deleteButton($actionModel,$id = null)
2323
{
24-
if (empty(!$id)){
24+
if (!empty($id)){
2525
$this->id = $id;
2626
}
2727
if (auth('admin')->user()->can("{$actionModel}.delete")){

0 commit comments

Comments
 (0)