From a6a95d2df0eada2357f3109cc2d3f2836742f0d5 Mon Sep 17 00:00:00 2001 From: fengshuang <945558163@qq.com> Date: Sat, 8 Sep 2018 17:46:48 +0800 Subject: [PATCH] first client_list is false --- OPSkinsOAuth.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OPSkinsOAuth.php b/OPSkinsOAuth.php index 62b563d..760efdf 100755 --- a/OPSkinsOAuth.php +++ b/OPSkinsOAuth.php @@ -510,7 +510,9 @@ public function loadClient(){ public function storeClient(){ $client_list = $this->getClientList(); - + if(empty($client_list)){ + $client_list = new \stdClass(); + } $client_list->{$this->client_id} = $this; if( !$this->verifyNonEmpty() ){