diff --git a/member/modules/v1/controllers/DoctorController.php b/member/modules/v1/controllers/DoctorController.php index 7b5b5f8..830aefb 100644 --- a/member/modules/v1/controllers/DoctorController.php +++ b/member/modules/v1/controllers/DoctorController.php @@ -57,7 +57,7 @@ class DoctorController extends BaseAppController public function actionAllList() { $post = \Yii::$app->request->post(); - $keyword = $post['keyword']; + $keyword = $post['keyword']?? ''; $store_id = \Yii::$app->store; $su_id = StoreDoctor::find()->select('su_id')->where([ 'store_id' => $store_id,