|
|
@@ -286,7 +286,7 @@ class WorkClass extends BaseClass
|
|
|
{
|
|
|
$work->status = self::STATUS_COMPLETE;
|
|
|
$work->finishTime = date("Y-m-d H:i:s");
|
|
|
- if (isset($staff) && !empty($staff)) {
|
|
|
+ if (!empty($staff)) {
|
|
|
$currentStaffId = $staff['staffId'] ?? 0;
|
|
|
$currentStaffName = $staff['staffName'] ?? '';
|
|
|
} else {
|